This repository contains the OpenCTI RAG System as is described on my blog.
- Make sure to have a dockerized OpenCTI instance up and running. I'm assuming the network it creates is opencti_default.
- Start up the Ollama Docker and pull the Mistral-7B Instruct model:
$ cd ollama_docker
$ docker-compose up -d
$ docker exec -it ollama ollama run mistral:7b-instruct- Configure the
docker-compose.ymlsettings and set the correct OPENCTI_TOKEN and CONNECTOR_ID (generated UUID). Do not forget to create a connector user in OpenCTI. Then start the OpenCTI RAG connector:
$ cd opencti_rag_connector
$ docker-compose up -d --build- Check the OpenCTI RAG connector logs to check if the reports are inserted into Elasticsearch. You can use the following command to view the indices and the number of documents in the
octi_ragindex.
http://localhost:9200/_cat/indices?v
- Start the StreamLit UI
$ cd opencti_rag_ui
$ docker-compose up -d --build
- If all went well, go to
http://localhost:8501and the StreamLit UI should be presented to you.