Spaces:
Runtime error
Runtime error
Commit
·
21da821
1
Parent(s):
4b1b19b
updated stuff
Browse files
__pycache__/main.cpython-311.pyc
ADDED
|
Binary file (1.05 kB). View file
|
|
|
routers/Query/__pycache__/query.cpython-311.pyc
ADDED
|
Binary file (2.15 kB). View file
|
|
|
routers/Query/query.py
CHANGED
|
@@ -1,14 +1,17 @@
|
|
| 1 |
from fastapi import APIRouter, Depends
|
| 2 |
from langchain_huggingface import HuggingFaceEmbeddings
|
| 3 |
from langchain_groq import ChatGroq
|
| 4 |
-
from langchain.graphs import Neo4jGraph
|
|
|
|
| 5 |
import os
|
| 6 |
from utils.LLMRequest import LLMRequest
|
| 7 |
|
| 8 |
router = APIRouter(prefix="/query")
|
| 9 |
|
|
|
|
| 10 |
global rag
|
| 11 |
|
|
|
|
| 12 |
@router.on_event('startup')
|
| 13 |
def instantiate_dependencies():
|
| 14 |
|
|
|
|
| 1 |
from fastapi import APIRouter, Depends
|
| 2 |
from langchain_huggingface import HuggingFaceEmbeddings
|
| 3 |
from langchain_groq import ChatGroq
|
| 4 |
+
# from langchain.graphs import Neo4jGraph
|
| 5 |
+
from langchain_community.graphs import Neo4jGraph
|
| 6 |
import os
|
| 7 |
from utils.LLMRequest import LLMRequest
|
| 8 |
|
| 9 |
router = APIRouter(prefix="/query")
|
| 10 |
|
| 11 |
+
|
| 12 |
global rag
|
| 13 |
|
| 14 |
+
|
| 15 |
@router.on_event('startup')
|
| 16 |
def instantiate_dependencies():
|
| 17 |
|
utils/__pycache__/LLMRequest.cpython-311.pyc
CHANGED
|
Binary files a/utils/__pycache__/LLMRequest.cpython-311.pyc and b/utils/__pycache__/LLMRequest.cpython-311.pyc differ
|
|
|