This project is useful to all those students with Bachelor's, Master's or PhD or Professor to help them with their research interests, daily tasks and much more Imagine a personalized AI chat box that tells you when to submit your thesis, how you will be your PhD supervisor, and when the next nearest research conference, TA, or RA duty will be in the upcoming week. Using the potential of Pathway LLM and long-chain, the potential is immense, and the example shown above is just the tip of the iceberg.
Install Pathway, Langchain, Groq and other required packages.
pip install langchain openai chromadb tiktoken unstructured
You can edit constants.py.default to your OpenAI API key, rename constants.py., and put your data in data/data.txt.
To initialize and set up the client, you must give either the URL or the host and port of your document indexing pipeline. The code provided utilizes a publicly accessible demonstration pipeline, which can be accessed using the REST API at https://demo-document-indexing.pathway.stream. This demonstration imports documents from Google Drive and Sharepoint and creates an index for efficiently accessing the information.
So you want to store data locally no problem! Follow the steps:
git clone <https://github.com/mayankbisht1/Research-buddy.git>
Build a .env file in the project's main directory using the touch command touch.env
set OPENAI_API_TOKEN={OPENAI_API_KEY}
set EMBEDDER_LOCATOR=text-embedding-ada-002
set EMBEDDING_DIMENSION=1536
set MODEL_LOCATOR=gpt-3.5-turbo
set MAX_TOKENS=200
set TEMPERATURE=0.0
set DROPBOX_LOCAL_FOLDER_PATH={REPLACE_WITH_DROPBOX_RELATIVE_PATH}
Install groq to same repository, create new groq account and apply for API key & don't forget to save it.
pip install groq
copy file chatbot.py and edit the API key, question, path for pdf file and for execution
python chatbot.py
Untitled.video.-.Made.with.Clipchamp.1.mp4
When is my next TA duty. Also tell me room no and course no.
Your next TA duty will be on 7th July in room no.101 with Btech group-4.