Nothing Special   »   [go: up one dir, main page]

Skip to content

Chatbot Answering from Your Own Knowledge Base: Langchain, ChatGPT, Pinecone, and Streamlit

License

Notifications You must be signed in to change notification settings

farukalamai/ai-chatbot-using-Langchain-Pinecone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chatbot Answering from Your Own Knowledge Base: Langchain, ChatGPT, Pinecone, and Streamlit

main-·-Streamlit (1)

Deployment

1. Clone Repository

  git clone https://github.com/farukalampro/ai-chatbot-using-Langchain-Pinecone.git
  cd ai-chatbot-using-Langchain-Pinecone

2. Create Virtual Environment

  python -m venv env
  • For Windows:
  .\env\Scripts\activate
  • For macOS/Linux:
  source env/bin/activate

3. To install require packages

  pip install -r requirements.txt

4. Replace your own document in data folder

5. Replace your own OpenAI, Pinecone API Key and Pinecone environment in indexing.py, main.py & utils.py

6. When you are creating the pinecone index make sure,

  • index_name = "langchain-chatbot"
  • Dimensions of the index is 384

7. Run the web app

  streamlit run main.py