Skip to content

TownSquareXYZ/TonGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

  1. Install dependencies
    Run the following command in the project root directory to install the dependencies listed in requirements.txt:

    pip install -r requirements.txt
  2. 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 your OpenAI API key:

    OPENAI_API_KEY=your_openai_api_key_here
  3. Prepare data for retrieval
    Place the .md files you want to search in the data folder.

  4. Generate Embeddings
    Run the scripts/generate_embeddings.py script to generate the embeddings from the .md files in the data folder. The embeddings and the mapping index files will be saved in the embeddings folder:

    python scripts/generate_embeddings.py
  5. Run tests
    Run the test script to verify the functionality:

    python scripts/test.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages