Is LangChain using OpenAI? Generative AI Applications with LangChain and OpenAI API LangChain offers an OpenAI chat interface to call the model APIs into your application and create a question/answer pipeline that answers users' queries based on given context or input documents. It basically performs a vectorized search to find the most similar answer to the question
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- activate venv in local system
.\.venv\Scripts\activate
- install requirements for code to run
pip install -r requirements.txt
- Reference youtube link for How to get API key
- Create .env file for apikey
BOT_TOKEN= 'Telegram Bot Token'
OPENAI_API_KEY = 'API Key'
NOTION_TOKEN = 'Notion Token'
DATABASE_ID = 'Notion Database ID'
SERPAPI_API_KEY = 'SERP API Key'
py telegram-bot.py