An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Chatbot Answering from Your Own Knowledge Base: Langchain, ChatGPT, Pinecone, and Streamlit
![main-·-Streamlit (1)](https://github.com/farukalampro/ai-chatbot-using-Langchain-Pinecone/assets/92469073/3f3ff527-f330-409f-959f-674846deb9a7)

## 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
```