This is the main Python file for the Perplexity Bot project.
The main.py
file is the entry point of the Perplexity Bot. It contains the main API logic utilizing the OpenAI API. This includes initializing the bot, setting up the necessary configurations, and starting the bot's event loop.
The file interacts with various other modules and components of the project to perform tasks such as processing user inputs, generating responses, and managing the bot's state.
- Add user input() and a while-loop to keep long-form conversations
- Append context to the messages so that conversations extend beyond one single message
- Add a menu UI that allows users to
- start a new conversation,
- save conversation,
- clear conversation,
- restore previous conversation(s)
- adjust the selected model mid-conversation
- save all conversation history to a text file
- switch to use LangChain connectors for Agent abilities
- Add Llamaindex for file-indexing/semantic search using local Chromadb & local embedding model
- Add special token that indicates a need for semantic search
- Add LM Studio option to interface with local models
To run the Perplexity Bot, execute the following command in your terminal:
python main.py