Skip to content

Commit eea624b

Browse files
Merge pull request #157 from neo4j-labs/DEV
Dev To Staging
2 parents 2ae51a8 + 6f23367 commit eea624b

25 files changed

+1157
-138
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,6 @@ cython_debug/
159159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160160
#.idea/
161161
.vscode/launch.json
162-
temp.pdf
162+
temp.pdf
163+
google-cloud-sdk
164+
google-cloud-cli-469.0.0-linux-x86_64.tar.gz

backend/example.env

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@ DIFFBOT_API_KEY = ""
33
NEO4J_URI = ""
44
NEO4J_USERNAME = ""
55
NEO4J_PASSWORD = ""
6+
NEO4J_DATABASE = ""
67
AWS_ACCESS_KEY_ID = ""
78
AWS_SECRET_ACCESS_KEY = ""
89
EMBEDDING_MODEL = ""
910
IS_EMBEDDING = "TRUE"
10-
KNN_MIN_SCORE = ""
11+
KNN_MIN_SCORE = ""
12+
LANGCHAIN_API_KEY = ""
13+
LANGCHAIN_PROJECT = ""
14+
LANGCHAIN_TRACING_V2 = ""
15+
LANGCHAIN_ENDPOINT = ""

backend/requirements.txt

Lines changed: 50 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,183 +1,138 @@
1-
aiohttp==3.9.1
1+
aiohttp==3.9.3
22
aiosignal==1.3.1
33
annotated-types==0.6.0
44
antlr4-python3-runtime==4.9.3
5-
anyio==4.2.0
6-
asttokens==2.0.5
5+
anyio==4.3.0
76
async-timeout==4.0.3
7+
asyncio==3.4.3
88
attrs==23.2.0
9-
backcall==0.2.0
109
backoff==2.2.1
11-
beautifulsoup4==4.12.2
12-
boto3==1.34.41
13-
botocore==1.34.41
14-
certifi==2023.11.17
10+
beautifulsoup4==4.12.3
11+
boto3==1.34.66
12+
botocore==1.34.66
13+
certifi==2024.2.2
1514
cffi==1.16.0
1615
chardet==5.2.0
1716
charset-normalizer==3.3.2
1817
click==8.1.7
19-
colorama==0.4.6
2018
coloredlogs==15.0.1
21-
comm==0.1.2
2219
contourpy==1.2.0
2320
cryptography==42.0.2
2421
cycler==0.12.1
25-
dataclasses-json==0.6.3
22+
dataclasses-json==0.6.4
2623
dataclasses-json-speakeasy==0.5.11
27-
debugpy==1.6.7
28-
decorator==5.1.1
2924
Deprecated==1.2.14
3025
distro==1.9.0
3126
effdet==0.4.1
3227
emoji==2.10.1
33-
exceptiongroup==1.0.4
34-
executing==0.8.3
35-
fastapi==0.109.0
28+
exceptiongroup==1.2.0
29+
fastapi==0.110.0
3630
fastapi-health==0.4.0
3731
filelock==3.13.1
3832
filetype==1.2.0
3933
flatbuffers==23.5.26
40-
fonttools==4.48.1
34+
fonttools==4.49.0
4135
frozenlist==1.4.1
4236
fsspec==2024.2.0
4337
greenlet==3.0.3
4438
h11==0.14.0
45-
httpcore==1.0.2
46-
httpx==0.26.0
39+
httpcore==1.0.4
40+
httpx==0.27.0
4741
huggingface-hub==0.20.3
4842
humanfriendly==10.0
4943
idna==3.6
50-
importlib-metadata==7.0.1
44+
importlib-resources==6.1.1
5145
iopath==0.1.10
52-
ipykernel==6.25.0
53-
ipython==8.15.0
54-
jedi==0.18.1
5546
Jinja2==3.1.3
5647
jmespath==1.0.1
5748
joblib==1.3.2
5849
jsonpatch==1.33
5950
jsonpath-python==1.0.6
6051
jsonpointer==2.4
61-
jupyter_client==8.6.0
62-
jupyter_core==5.5.0
6352
kiwisolver==1.4.5
64-
langchain==0.1.11
65-
langchain-community==0.0.27
66-
langchain-core==0.1.30
67-
langchain-experimental==0.0.53
53+
langchain==0.1.12
54+
langchain-community==0.0.28
55+
langchain-core==0.1.32
56+
langchain-experimental==0.0.54
6857
langchain-openai==0.0.8
58+
langchain-text-splitters==0.0.1
6959
langdetect==1.0.9
60+
langsmith==0.1.31
7061
layoutparser==0.3.4
7162
lxml==5.1.0
7263
MarkupSafe==2.1.5
7364
marshmallow==3.20.2
74-
matplotlib==3.8.2
75-
matplotlib-inline==0.1.6
65+
matplotlib==3.7.2
7666
mpmath==1.3.0
77-
multidict==6.0.4
67+
multidict==6.0.5
7868
mypy-extensions==1.0.0
79-
neo4j==5.16.0
80-
nest-asyncio==1.5.6
69+
neo4j==5.18.0
8170
networkx==3.2.1
8271
nltk==3.8.1
83-
numpy==1.26.3
84-
nvidia-cublas-cu12==12.1.3.1
85-
nvidia-cuda-cupti-cu12==12.1.105
86-
nvidia-cuda-nvrtc-cu12==12.1.105
87-
nvidia-cuda-runtime-cu12==12.1.105
88-
nvidia-cudnn-cu12==8.9.2.26
89-
nvidia-cufft-cu12==11.0.2.54
90-
nvidia-curand-cu12==10.3.2.106
91-
nvidia-cusolver-cu12==11.4.5.107
92-
nvidia-cusparse-cu12==12.1.0.106
93-
nvidia-nccl-cu12==2.19.3
94-
nvidia-nvjitlink-cu12==12.3.101
95-
nvidia-nvtx-cu12==12.1.105
72+
numpy==1.26.4
9673
omegaconf==2.3.0
9774
onnx==1.15.0
9875
onnxruntime==1.15.1
99-
openai
100-
opencv-python==4.9.0.80
101-
opencv-python-headless==4.9.0.80
76+
openai==1.14.2
77+
opencv-python==4.8.0.76
78+
orjson==3.9.15
10279
packaging==23.2
10380
pandas==2.2.0
104-
parso==0.8.3
10581
pdf2image==1.17.0
10682
pdfminer.six==20221105
10783
pdfplumber==0.10.4
108-
pexpect==4.9.0
109-
pickleshare==0.7.5
110-
pikepdf==8.12.0
84+
pikepdf==8.11.0
11185
pillow==10.2.0
11286
pillow_heif==0.15.0
113-
platformdirs==3.10.0
11487
portalocker==2.8.2
115-
prompt-toolkit==3.0.43
116-
protobuf==4.25.2
117-
psutil==5.9.0
118-
ptyprocess==0.7.0
119-
pure-eval==0.2.2
88+
protobuf==4.23.4
12089
pycocotools==2.0.7
12190
pycparser==2.21
122-
pydantic==2.5.3
123-
pydantic_core==2.14.6
124-
Pygments==2.15.1
125-
pyparsing==3.1.1
126-
pypdf==3.17.4
91+
pydantic==2.6.4
92+
pydantic_core==2.16.3
93+
pyparsing==3.0.9
94+
pypdf==4.0.1
12795
pypdfium2==4.27.0
12896
pytesseract==0.3.10
129-
python-certifi-win32==1.6.1
13097
python-dateutil==2.8.2
131-
python-dotenv==1.0.0
98+
python-dotenv==1.0.1
13299
python-iso639==2024.2.7
133100
python-magic==0.4.27
134-
python-multipart==0.0.6
135-
pytz==2023.3.post1
101+
python-multipart==0.0.9
102+
pytube==15.0.0
103+
pytz==2024.1
136104
PyYAML==6.0.1
137-
pyzmq==25.1.0
138105
rapidfuzz==3.6.1
139106
regex==2023.12.25
140107
requests==2.31.0
141-
s3transfer==0.10.0
142-
safetensors==0.4.2
143-
scipy==1.12.0
144-
setuptools-scm==8.0.4
108+
s3transfer==0.10.1
109+
safetensors==0.3.2
110+
scipy==1.10.1
145111
six==1.16.0
146-
sniffio==1.3.0
112+
sniffio==1.3.1
147113
soupsieve==2.5
148-
SQLAlchemy==2.0.25
149-
stack-data==0.2.0
150-
starlette==0.35.1
114+
SQLAlchemy==2.0.28
115+
starlette==0.36.3
151116
sympy==1.12
152117
tabulate==0.9.0
153118
tenacity==8.2.3
154-
tiktoken==0.5.2
119+
tiktoken==0.6.0
155120
timm==0.9.12
156121
tokenizers==0.15.2
157-
tomli==2.0.1
158-
torch==2.2.0
159-
torchvision==0.17.0
160-
tornado==6.3.3
161-
tqdm==4.66.1
162-
traitlets==5.7.1
163-
transformers==4.37.2
122+
tqdm==4.66.2
123+
transformers==4.37.1
164124
triton==2.2.0
165125
typing-inspect==0.9.0
166126
typing_extensions==4.9.0
167127
tzdata==2024.1
168-
unstructured==0.12.4
128+
unstructured==0.12.6
169129
unstructured-client==0.18.0
170130
unstructured-inference==0.7.23
171131
unstructured.pytesseract==0.3.12
172-
urllib3==2.0.7
173-
uvicorn==0.26.0
174-
wcwidth==0.2.5
132+
urllib3==1.26.18
133+
uvicorn==0.29.0
175134
wikipedia==1.4.0
176135
wrapt==1.16.0
177136
yarl==1.9.4
137+
youtube-transcript-api==0.6.2
178138
zipp==3.17.0
179-
poppler-utils
180-
pytesseract
181-
pdf2image
182-
youtube-transcript-api
183-
pytube

backend/score.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ async def chat_bot(uri=Form(None),
173173
userName=Form(None),
174174
password=Form(None),
175175
question=Form(None),
176-
model=Form(None)):
177-
result = await asyncio.to_thread(QA_RAG,uri=uri,userName=userName,password=password,model_version=model,question=question)
176+
session_id=Form(None)):
177+
result = await asyncio.to_thread(QA_RAG,uri=uri,userName=userName,password=password,question=question,session_id=session_id)
178178
return result
179179

180180
@app.post("/connect")

0 commit comments

Comments
 (0)