Skip to content
Projects

techleadhd/chatgpt-retrieval

View on GitHub

techleadhd/chatgpt-retrieval has 1,693 GitHub stars and 757 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-06 05:20 UTC. Last push 2024-03-04.

How these counts are measured

Modify constants.py.default to use your own OpenAI API key, and rename it to constants.py.

Measured star growth

in 24h
0
in 7 days
Update delayed
in 15 days
Update delayed
in 1 month
Update delayed

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

chatgpt-retrieval

Simple script to use ChatGPT on your own files.

Here's the YouTube Video.

Installation

Install Langchain and other required packages.

pip install langchain openai chromadb tiktoken unstructured

Modify constants.py.default to use your own OpenAI API key, and rename it to constants.py.

Place your own data into data/data.txt.

Example usage

Test reading data/data.txt file.

> python chatgpt.py "what is my dog's name"
Your dog's name is Sunny.

Test reading data/cat.pdf file.

> python chatgpt.py "what is my cat's name"
Your cat's name is Muffy.

Explore related projects