Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Applying evaluation framework #89

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ chunk_overlap: 100

admin_email: [email protected]

embeddings_model_name: dariolopez/roberta-base-bne-finetuned-msmarco-qa-es-mnrl-mn
embeddings_model_size: 768
# embeddings_model_name: intfloat/multilingual-e5-large
embeddings_model_name: BAAI/bge-m3
embeddings_model_size: 1024

vector_store: 'qdrant' # {'qdrant', 'pinecone', 'supabase'}
top_k_results: 10
Expand All @@ -27,11 +28,18 @@ prompt_system_context: |
collections:
- justicio
- boe
- boe-multilingual-e5-large
- boe-bge-m3
- bocm
- bocm-multilingual-e5-large
- bopz
- bopz-multilingual-e5-large
- bopv
- bopv-multilingual-e5-large
- boja
- boja-multilingual-e5-large
- boa
- boa-multilingual-e5-large

# Openai
llm_model_name: 'gpt-3.5-turbo-0125' # 'gpt-3.5-turbo-1106', 'gpt-4-1106-preview'
Expand Down
30 changes: 30 additions & 0 deletions doc/qdrant/queries.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ GET collections
// Get collection info
GET collections/justicio

// Create a new collection
// https://qdrant.tech/documentation/tutorials/bulk-upload/
PUT /collections/{collection_name}
{
"vectors": {
"size": 1024,
"distance": "Cosine"
},
"shard_number": 2,
"optimizers_config": {
"indexing_threshold": 0
}
}

// List points in a collection, using filter by metadata
POST collections/justicio/points/scroll
{
Expand Down Expand Up @@ -77,5 +91,21 @@ POST collections/justicio/points/delete
}
}

// No funciona porque tenemos las fechas como strings en lugar de como números.
POST /collections/boe-bge-m3/points/count
{
"filter": {
"should": [
{
"key": "metadata.anio",
"range": {
"gte": 2000
}
}
]
}
}


// https://qdrant.tech/documentation/concepts/filtering/
// https://qdrant.tech/documentation/concepts/points/
Loading
Loading