| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This directory contains a Python script that implements a conversational retrieval system using LangChain and OpenAI's API. The script allows users to query a collection of documents and receive responses based on the retrieved information.
You can install the required packages using pip:
pip install openai langchain chromadbgit clone https://github.com/king04aman/custom-gpt.git
cd your_repositoryexport OPENAI_API_KEY="your_api_key_here"Run the script from the command line:
python main.pyYou can provide an initial query as a command line argument:
python main.py "Your initial query here"If no initial query is provided, the script will prompt you to enter queries interactively. Type your question and press Enter to get a response. Type quit, q, or exit to exit the program.
Prompt (type 'quit' to exit): What is the significance of data persistence?
Response: [Your response here based on the documents]This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to submit issues or pull requests. Contributions are welcome!
| Back | FazBrowse Home | New Git URL |