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
기본 봇 ( 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 키가 포함되어 있는지 확인하십시오.PENECONE 오류 :
이 프로젝트가 도움이된다면 별을주는 것을 고려하십시오! 다른 사람들이 프로젝트를 발견하고 더 많은 콘텐츠를 만들도록 도와줍니다.
질문과 피드백은 Github 저장소에서 문제를여십시오.
행복한 코딩!