-
Install dependencies
Run the following command in the project root directory to install the dependencies listed inrequirements.txt
:pip install -r requirements.txt
-
Set up environment variables
Copy the.env_copy_this
file and rename it to.env
:cp .env_copy_this .env
Then, open the
.env
file and add yourOpenAI
API key:OPENAI_API_KEY=your_openai_api_key_here
-
Prepare data for retrieval
Place the.md
files you want to search in thedata
folder. -
Generate Embeddings
Run thescripts/generate_embeddings.py
script to generate the embeddings from the.md
files in thedata
folder. The embeddings and the mapping index files will be saved in theembeddings
folder:python scripts/generate_embeddings.py
-
Run tests
Run the test script to verify the functionality:python scripts/test.py
-
Notifications
You must be signed in to change notification settings - Fork 0
TownSquareXYZ/TonGPT
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published