Agents for the CaseLens project. Built with BESSER Agentic Framework
pip install -r requirements.txtpython run.pyYou can access the application in http://localhost:8501
This command uses the file Dockerfile
docker build -t besser-agents .This command uses the file docker-compose.yml
docker-compose up -dYou can access the application in http://localhost:8501
In Docker, a volume is a persistent storage mechanism used to store and share data between containers and the host system, independent of the container's lifecycle.
This app has 2 volumes, as specified in docker-compose.yml:
- .streamlit: contains secrets.toml and config.toml, which store some Streamlit properties (Streamlit is the UI framework of the application) (more info in the official Streamlit docs)
- data: Stores data created by the agents.
The data volume contains the following:
- config.ini: properties for the agents. We can define the following properties here:
nlp.ollama.host = localhostHost address of the Ollama LLMnlp.ollama.port = 11434Port of the Ollama LLMnlp.ollama.max_tokens = 8000Maximum number of input tokens for the LLMnlp.ollama.model = gemma3:12bName of the Ollama LLM (full list here)nlp.hf.tokenizer = google/gemma-2-2b-itName of the tokenizer to use (should be the same family of the LLM. (full list here))nlp.hf.api_key = YOUR-API-KEYHuggingFace API Key. Some tokenizers may need authentication and therefore it is necessary to provide this key.elasticsearch.host = localhostHost address of the elasticsearch databaseelasticsearch.port = 19200Port of the elasticsearch databaseelasticsearch.index = castor-test-enronName of the elastiscearch index
- data_labeling_agent folder: Contains the file request_history.json, which stores the requests done with this agent.
- chat_files_agent folder: Contains the file chat_notebook.json, which stores the requests done with this agent. Also contains the chats folder. All imported chats are processed and exported in JSON format into this folder. The agent actually uses these files to analyze the chat files.