Skip to content

Commit 7f84edf

Browse files
'mergechanges'
2 parents 6bd5327 + 98d0ce4 commit 7f84edf

File tree

138 files changed

+7446
-2875
lines changed

Some content is hidden

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

138 files changed

+7446
-2875
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,4 @@ google-cloud-sdk
164164
google-cloud-cli-469.0.0-linux-x86_64.tar.gz
165165
/data/llm-experiments-387609-c73d512ca3b1.json
166166
/backend/src/merged_files
167-
/backend/src/chunks
167+
/backend/src/chunks

README.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ Files can be uploaded from local machine or S3 bucket and then LLM model can be
55

66
### Getting started
77

8+
:warning:
9+
For the backend, if you want to run the LLM KG Builder locally, and don't need the GCP/VertexAI integration, make sure to have the following set in your ENV file :
10+
11+
```env
12+
GEMINI_ENABLED = False
13+
GCP_LOG_METRICS_ENABLED = False
14+
```
15+
16+
And for the frontend, make sure to export your local backend URL before running docker-compose by having the BACKEND_API_URL set in your ENV file :
17+
```env
18+
BACKEND_API_URL="http://localhost:8000"
19+
```
20+
821
1. Run Docker Compose to build and start all components:
922
```bash
1023
docker-compose up --build
@@ -61,8 +74,18 @@ NEO4J_PASSWORD = ""\
6174
AWS_ACCESS_KEY_ID = ""\
6275
AWS_SECRET_ACCESS_KEY = ""\
6376
EMBEDDING_MODEL = ""\
64-
IS_EMBEDDING = "TRUE"
65-
KNN_MIN_SCORE = ""\
77+
IS_EMBEDDING = "TRUE"\
78+
KNN_MIN_SCORE = ""
79+
80+
## Setting up Enviournment Variables For Frontend Configuration
81+
82+
Create .env file in the frontend root folder and update the following env variables.\
83+
BACKEND_API_URL=""\
84+
BLOOM_URL=""\
85+
REACT_APP_SOURCES=""\
86+
LLM_MODELS=""\
87+
ENV=""\
88+
TIME_PER_CHUNK=
6689
6790
## Functions/Modules
6891

backend/example.env

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@ LANGCHAIN_API_KEY = ""
1313
LANGCHAIN_PROJECT = ""
1414
LANGCHAIN_TRACING_V2 = ""
1515
LANGCHAIN_ENDPOINT = ""
16-
NUMBER_OF_CHUNKS_TO_COMBINE = ""
16+
NUMBER_OF_CHUNKS_TO_COMBINE = ""
17+
# NUMBER_OF_CHUNKS_ALLOWED = ""
18+
# Enable Gemini (default is True)
19+
GEMINI_ENABLED = True|False
20+
# Enable Google Cloud logs (default is True)
21+
GCP_LOG_METRICS_ENABLED = True|False

backend/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ timm==0.9.12
147147
tokenizers==0.15.2
148148
tqdm==4.66.2
149149
transformers==4.37.1
150-
triton==2.2.0
151150
types-protobuf
152151
types-requests
153152
typing-inspect==0.9.0
@@ -164,4 +163,5 @@ wrapt==1.16.0
164163
yarl==1.9.4
165164
youtube-transcript-api==0.6.2
166165
zipp==3.17.0
167-
sentence-transformers
166+
sentence-transformers
167+
google-cloud-logging==3.10.0

backend/score.py

Lines changed: 212 additions & 63 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)