building intelligent chatbots
1.0.0
يوضح هذا المستودع كيفية إنشاء chatbots بمستويات مختلفة من إمكانيات الذاكرة باستخدام Langchain و Pinecone و STREMLIT. يعرض المشروع التطور من chatbot عديمة الجنسية إلى واحد مع تخزين ذاكرة دائم.
قبل أن تبدأ ، تأكد من أن لديك:
git clone https://github.com/spandan114/building-intelligent-chatbots.git
cd building-intelligent-chatbotsعلى Windows:
# Create virtual environment
python -m venv chatbotenv
# Activate virtual environment
chatbotenv S cripts a ctivateعلى macos/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
الروبوت الأساسي ( 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.txtأخطاء مفتاح API :
.env الخاص بك موجودًا ويحتوي على مفاتيح API صالحةأخطاء pinecone :
إذا وجدت هذا المشروع مفيدًا ، فيرجى التفكير في منحه نجمة! يساعد الآخرين على اكتشاف المشروع ويحفزنا على إنشاء المزيد من المحتوى.
للأسئلة والتعليقات ، يرجى فتح مشكلة في مستودع GitHub.
ترميز سعيد!