https://github.com/farukalamai/ai-chatbot-using-langchain-pinecone
Chatbot Answering from Your Own Knowledge Base: Langchain, ChatGPT, Pinecone, and Streamlit
https://github.com/farukalamai/ai-chatbot-using-langchain-pinecone
ai ai-bot aichatbot artificial-intelligence chatbot chatgpt generative-ai gpt-3 gpt-4 langchain llm openai pinecone streamlit streamlit-webapp webapplication
Last synced: about 1 year ago
JSON representation
Chatbot Answering from Your Own Knowledge Base: Langchain, ChatGPT, Pinecone, and Streamlit
- Host: GitHub
- URL: https://github.com/farukalamai/ai-chatbot-using-langchain-pinecone
- Owner: farukalamai
- License: mit
- Created: 2023-07-08T19:44:30.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-19T08:19:04.000Z (over 2 years ago)
- Last Synced: 2025-03-27T02:39:16.377Z (about 1 year ago)
- Topics: ai, ai-bot, aichatbot, artificial-intelligence, chatbot, chatgpt, generative-ai, gpt-3, gpt-4, langchain, llm, openai, pinecone, streamlit, streamlit-webapp, webapplication
- Language: Python
- Homepage:
- Size: 11.6 MB
- Stars: 32
- Watchers: 2
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chatbot Answering from Your Own Knowledge Base: Langchain, ChatGPT, Pinecone, and Streamlit

## Deployment
#### 1. Clone Repository
```bash
git clone https://github.com/farukalampro/ai-chatbot-using-Langchain-Pinecone.git
```
```bash
cd ai-chatbot-using-Langchain-Pinecone
```
#### 2. Create Virtual Environment
```bash
python -m venv env
```
- For Windows:
```bash
.\env\Scripts\activate
```
- For macOS/Linux:
```bash
source env/bin/activate
```
#### 3. To install require packages
```bash
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
- [OpenAI API Key](https://platform.openai.com)
- [Pinecone](app.pinecone.io)
#### 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
```bash
streamlit run main.py
```