Skip to content

mayankbisht1/Research-buddy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Research-buddy

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.

Steps for installation

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.

1. Data Pipeline (For docs uploaded in Google Drive)

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.

2. Data stored in local drive

So you want to store data locally no problem! Follow the steps:

Step 1 : Clone the entire repository

git clone <https://github.com/mayankbisht1/Research-buddy.git>

Step 2: Create a new file .env

Build a .env file in the project's main directory using the touch command touch.env

Step 3: Using windows

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}

4. For free API key use GROQ or other (small chatbot)

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

Some prompt examples

Demo

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.

About

This project is dedicated to the all those students belongs to Masters or PHD or Professor to help them with there research interest, daily task and much more

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages