It is a dynamic flask web application that uses groq and my own RAG module for PDF and WEB pages.
The app also includes Text2Speach and Speach2Text, but it doesn't work properly yet.
Should be put on the same level as compose.yaml
GROQ_API_KEY=""
DG_API_KEY=""
Form_key="your-secret-key"
DB_URL="postgresql://postgres:postgres@postgres:5432/oltp_db"
SECRET_KEY="5e9f4d3e7c2b1a8f6b4e3d1c9a7f5e2b"
Firstly you need to download docker desktop for using this app
- Login system with sessions
- Generating messages and storing them in db
- Restore chat history
- Remembering the previous topic
- Text extraction from PDF and WEB pages
- Storing extracted text in db for each user separately
- Vectorizing the extracted content and saving it to db (the vectorization is also saved to vectorizer.pkl file for future use)
- Vectorizing the prompt and using cosine similarity to find the nearest paragraph index
- Find the paragraphs from the returned index
< FIRST START >
- After downloading the repository and the docker desktop you need to navigate to Final02 (cd Final02)
- Then you need to open .env file and put there API keys (Groq is for LLM and DG is for Text2Speach and Speach2Text)
- Then you simply need to build the docker (docker compose build)
- After that you can start the app (docker compose up)
- After starting the app you will see login screen where you can simply log (Inside the app is complex system for remembering users and building users previouse conversation)
- After successful login you need to click on plus (+) button on the center top that will create a new chat session with bot
- Then you can chat!
< RAG >
- For using the RAG module you need to firstly upload your PDF file or URL for WEB page (you can do that in button 'upload')
- Then you need to activate the RAG (Red button on the left with RAG layble)
- ENJOY!
< GROQ >
- For API Key you need to go to https://groq.com/ and register there
- After that you can go to GroqCloud (on the bottom)
- There you can find collum API Keys
< DEEPGRAM >
- For API Key you need to go to https://deepgram.com/ and register there
- There you can find API Keys
but you get 200$ for start