Skip to content

Utilizing Langchain and OpenAI, this Conversational AI model provides context-aware responses based on custom data, offering a compact yet powerful solution for interactive and coherent dialogues

Notifications You must be signed in to change notification settings

rthomas24/conversational_AI_model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Utilizing Langchain and OpenAI, this Conversational AI model provides context-aware responses based on custom data, offering a compact yet powerful solution for interactive and coherent dialogues

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages