Skip to content

Commit 43632ee

Browse files
Merge pull request #223 from neo4j-labs/DEV
Dev To Staging
2 parents df236a7 + e52c881 commit 43632ee

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2283
-1702
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,6 @@ cython_debug/
162162
temp.pdf
163163
google-cloud-sdk
164164
google-cloud-cli-469.0.0-linux-x86_64.tar.gz
165-
/data/llm-experiments-387609-c73d512ca3b1.json
165+
/data/llm-experiments-387609-c73d512ca3b1.json
166+
/backend/src/merged_files
167+
/backend/src/chunks

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ KNN_MIN_SCORE = ""\
7474
userName: Username to use for graph creation ( if None will use username from config file )
7575
password: Password to use for graph creation ( if None will use password from config file )
7676
file: File object containing the PDF file path to be used
77-
model: Type of model to use ('OpenAI GPT 3.5' or 'OpenAI GPT 4')
77+
model: Type of model to use ('Gemini Pro' or 'Diffbot')
7878
7979
Returns:
8080
Json response to API with fileName, nodeCount, relationshipCount, processingTime,

backend/Dockerfile

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,5 @@ RUN apt-get update \
1010
&& export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH \
1111
&& pip install --no-cache-dir --upgrade -r /code/requirements.txt
1212

13-
# Installing gcloud
14-
#RUN curl https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz > /tmp/google-cloud-sdk.tar.gz
15-
16-
# Installing the package
17-
#RUN mkdir -p /usr/local/gcloud \
18-
# && tar -C /usr/local/gcloud -xvf /tmp/google-cloud-sdk.tar.gz \
19-
# && /usr/local/gcloud/google-cloud-sdk/install.sh
20-
21-
# Adding the package path to local
22-
#ENV PATH $PATH:/usr/local/gcloud/google-cloud-sdk/bin
23-
2413
CMD ["uvicorn", "score:app", "--host", "0.0.0.0", "--port", "8000"]
25-
#CMD ["gcloud", "auth", "application-default", "login", "--quiet", "--no-user-output-enabled"]
2614

backend/example.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ KNN_MIN_SCORE = ""
1212
LANGCHAIN_API_KEY = ""
1313
LANGCHAIN_PROJECT = ""
1414
LANGCHAIN_TRACING_V2 = ""
15-
LANGCHAIN_ENDPOINT = ""
15+
LANGCHAIN_ENDPOINT = ""
16+
NUMBER_OF_CHUNKS_TO_COMBINE = ""

backend/requirements.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ docstring_parser==0.16
2828
effdet==0.4.1
2929
emoji==2.10.1
3030
exceptiongroup==1.2.0
31-
fastapi==0.110.0
32-
fastapi-health==0.4.0
31+
fastapi
32+
fastapi-health
3333
filelock==3.13.1
3434
filetype==1.2.0
3535
flatbuffers==23.5.26
@@ -38,7 +38,7 @@ frozenlist==1.4.1
3838
fsspec==2024.2.0
3939
google-api-core==2.18.0
4040
google-auth==2.29.0
41-
google-cloud-aiplatform==1.46.0
41+
google-cloud-aiplatform
4242
google-cloud-bigquery==3.19.0
4343
google-cloud-core==2.4.1
4444
google-cloud-resource-manager==1.12.3
@@ -158,9 +158,10 @@ unstructured-client
158158
unstructured-inference
159159
unstructured.pytesseract
160160
urllib3
161-
uvicorn==0.29.0
161+
uvicorn
162162
wikipedia==1.4.0
163163
wrapt==1.16.0
164164
yarl==1.9.4
165165
youtube-transcript-api==0.6.2
166166
zipp==3.17.0
167+
sentence-transformers

0 commit comments

Comments
 (0)