Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 995 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 995 Bytes

Simplified Conversational AI model

Sophisticated Conversational AI model, leveraging the power of Langchain and OpenAI's cutting-edge language model. This model is uniquely designed to operate on custom imported data, enabling personalized and context-aware interactions. By integrating Langchain, it efficiently manages conversation flows, ensuring coherent, natural language exchanges. The use of OpenAI's language model allows the system to generate remarkably human-like responses.

Installation

Install Langchain and other required packages.

pip install langchain openai chromadb unstructured tiktoken

Modify constants.py to use your own OpenAI API key

Place your own data into data/data.txt.

Example

Test reading data/data.txt file.

> python simplegpt.py
Question: "Who had the most blocks"
Kentavious Caldwell Pope of the Denver Nuggets had the most blocks with 3