Skip to content

Commit

Permalink
Merge pull request #68 from bukosabino/develop-new-embedding-model
Browse files Browse the repository at this point in the history
New embedding model and collection
  • Loading branch information
bukosabino authored Mar 2, 2024
2 parents 6bbe0a4 + be91937 commit a868ecb
Show file tree
Hide file tree
Showing 5 changed files with 17,372 additions and 8 deletions.
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: [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_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

0 comments on commit a868ecb

Please sign in to comment.