building intelligent chatbots
1.0.0
このリポジトリは、Langchain、Pinecone、およびStreamlitを使用して、さまざまなレベルのメモリ機能でチャットボットを構築する方法を示しています。このプロジェクトは、ステートレスチャットボットから永続的なメモリストレージを備えたものへの進化を示しています。
始める前に、次のことを確認してください。
git clone https://github.com/spandan114/building-intelligent-chatbots.git
cd building-intelligent-chatbotsWindows:
# Create virtual environment
python -m venv chatbotenv
# Activate virtual environment
chatbotenv S cripts a ctivateMacOS/Linuxについて:
# Create virtual environment
python -m venv chatbotenv
# Activate virtual environment
source chatbotenv/bin/activatepip install -r requirements.txtプロジェクトルートに.envファイルを作成します。
PINECONE_API_KEY = your_pinecone_api_key_here
OPENAI_API_KEY = your_openai_api_key_here
GROQ_API_KEY = your_groq_api_key_herestreamlit run app.pyアプリケーションはhttp://localhost:8501で入手できます
deactivate building-intelligent-chatbots/
├── bot_with_pinecone_memory.py # Main application with Pinecone
├── bot_without_memory.py # Basic bot implementation
├── bot_with_temporary_memory.py # Bot with session state memory
├── requirements.txt # Project dependencies
├── .env # Environment variables (create this)
└── README.md # This file
BASIC BOT ( bot_without_memory.py ):
streamlit run bot_without_memory.py一時的なメモリボット( bot_with_temporary_memory.py ):
streamlit run bot_with_temporary_memory.py永久メモリボット( bot_with_pinecone_memory.py ):
streamlit run bot_with_pinecone_memory.py langchain
langchain-groq
langchain-pinecone
langchain-huggingface
langchain-postgres
langchain-community
langchain-core
streamlit
python-dotenv
pinecone-client
psycopg2-binary
sentence-transformers
openai
tiktoken
modulenotfounderror :
pip install -r requirements.txtAPIキーエラー:
.envファイルが存在するかどうかを確認し、有効なAPIキーが含まれていますPineconeエラー:
このプロジェクトが役立つと思ったら、スターを与えることを検討してください!それは他の人がプロジェクトを発見するのを助け、私たちがより多くのコンテンツを作成するように動機付けます。
質問やフィードバックについては、GitHubリポジトリで問題を開いてください。
ハッピーコーディング!