Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 646 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 646 Bytes

chatgpt-retrieval

Here's the YouTube Video.

Installation

Install Langchain and other required packages.

pip install langchain openai chromadb tiktoken unstructured
pip install pypdf -- not working with PDFs yet need to modify code

change creativity parameter == , temperature=0.6  0.0 least -> 1.0 most creative

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.