llamapedia/README.md
2024-10-23 18:39:53 +02:00

30 lines
961 B
Markdown

# OLLAMA Wikipedia-like Interface
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.
## Setup
1. Install the required dependencies:
```
pip install -r requirements.txt
```
2. Configure the `.env` file with your OLLAMA API URL and model name.
3. Run the Streamlit app:
```
streamlit run src/main.py
```
4. Open your web browser and navigate to the URL provided by Streamlit (usually `http://localhost:8501`).
## Usage
1. Enter your query in the text area provided.
2. Click the "Submit" button to generate a response.
3. The app will display the OLLAMA-generated response in a Wikipedia-like format.
## Configuration
- 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.