This Streamlit app provides a Wikipedia-like interface for querying an OLLAMA language model. Users can input their queries, and the app will generate informative responses using the configured OLLAMA model.
-
Install the required dependencies:
pip install -r requirements.txt
-
Configure the
.env
file with your OLLAMA API URL and model name (copy theenv.example
file to.env
and modify it). -
Run the Streamlit app:
streamlit run src/main.py
-
Open your web browser and navigate to the URL provided by Streamlit (usually
http://localhost:8501
).
- You can use the
llamapedia.desktop
orllamapedia.bat
files to run the app. This provides a terminal window for the app and an easy way to launch it with a double-click.
- Enter your query in the text area provided.
- Click the "Submit" button to generate a response.
- The app will display the OLLAMA-generated response in a Wikipedia-like format.
- Modify the
system_prompt.txt
file to change the system prompt sent to the OLLAMA model. - Update the
.env
file to change the OLLAMA API URL or model name.