- Copy the
.env.examplefile to.env:cp .env.example .env
- Fill in the required environment variables in the .env file
- Build and start the Docker containers:
docker-compose up --build
- Create a new Python 3.12 virtual environment:
python3.12 -m venv venv
- Activate the virtual environment:
On macOS/Linux:
source venv/bin/activate
On Windows:
.\venv\Scripts\activate
- Install the required dependencies:
pip install -r requirements.txt
- Copy the .env.example file to .env:
cp .env.example .env
- Fill in the required environment variables in the .env file
- Run database migrations:
python src/setup.py
- Run the application:
streamlit src/ASDEL.py
- Open the application in your browser at
http://localhost:8501
Find all the evaluation results for a specific study:
SELECT er.uuid AS "UUID", -- EvaluationResult columns
er.context_recall,
er.answer_relevancy,
er.context_precision,
er.answer_correctness,
er.faithfulness,
pi.embedding_model, -- ParameterizedIndex columns
pi."chunkSize",
pi."sentenceOverlapCount",
pi."splitStrategy",
prc.top_k, -- ParameterizedRetrievalCollection columns
prc.answer_generation_model
FROM evaluation_result er
JOIN parameterized_retrieval_collection prc ON er.parameterized_retrieval_collection_uuid = prc.uuid
JOIN parameterized_index pi ON prc.parameterized_index_uuid = pi.uuid
WHERE pi.study_id = 'a1fff0ad-6b75-478b-98b9-e8a421265397';