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

New embedding model and collection #68

Merged
merged 2 commits into from
Mar 2, 2024
Merged
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ cython_debug/

.secrets
.continous_deployment.md
.qdrant.yaml
cron_etl_daily.sh
cron_etl_initial.sh

Expand Down
5 changes: 3 additions & 2 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ chunk_overlap: 100

admin_email: bukosabino@gmail.com

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_size: 1024

vector_store: 'qdrant' # {'qdrant', 'pinecone', 'supabase'}
top_k_results: 10
Expand All @@ -26,6 +26,7 @@ prompt_system_context: |
# Qdrant
collections:
- justicio
- boe
- bocm
- bopz

Expand Down
26 changes: 26 additions & 0 deletions doc/qdrant/queries.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,32 @@ POST collections/justicio/points/count
}
}

// Count points in a collection, using filter by multiple metadata
POST collections/justicio/points/count
{
"filter": {
"must": [
{
"key": "metadata.anio",
"match": {
"value": "2024"
}
},
{
"key": "metadata.mes",
"match": {
"value": "02"
}
},
{
"key": "metadata.dia",
"match": {
"value": "20"
}
}
]
}
}

// Delete points in a collection, using filter by metadata
POST collections/justicio/points/delete
Expand Down
Loading
Loading