-
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_thisfile and rename it to.env:cp .env_copy_this .env
Then, open the
.envfile and add yourOpenAIAPI key:OPENAI_API_KEY=your_openai_api_key_here
-
Prepare data for retrieval
Place the.mdfiles you want to search in thedatafolder. -
Generate Embeddings
Run thescripts/generate_embeddings.pyscript to generate the embeddings from the.mdfiles in thedatafolder. The embeddings and the mapping index files will be saved in theembeddingsfolder: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