This is a sample application for RAG (retrieval augmented generation) with Confluence data.
It depends on rye for package management.
Since gist doesn't allow to crete a directory, make sure to create confluence_rag
directory and move Python files under it.
mkdir confluence_rag
mv confluence_rag-app.py confluence_rag/app.py
mv confluence_rag-qa.py confluence_rag/qa.py
mv confluence_rag-__init__.py confluence_rag/__init__.py
Before launch, you should modify confluence_rag/app.py, especially Confluence's username and space name.
Also, you have to set attlasian API token in ATL_TOKEN
in environment variable.
You can launch a web app with the following command:
rye sync
export ATL_TOKEN="...."
rye run rag
Or, you can launch as:
python -m venv .venv
source .venv/bin/activate
pip install -e .
python confluence_rag/app.py