Skip to content

Commit cf3c154

Browse files
committed
add more llama_index filters
1 parent c650983 commit cf3c154

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"mappings": {
3+
"dynamic": false,
4+
"fields": {
5+
"metadata.year": [
6+
{
7+
"type": "number"
8+
}
9+
]
10+
}
11+
},
12+
"name": "metadata_year",
13+
"type": "search",
14+
"database": "llama_index_test_db",
15+
"collectionName": "llama_index_test_filters"
16+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"fields": [
3+
{
4+
"numDimensions": 10,
5+
"path": "embedding",
6+
"similarity": "cosine",
7+
"type": "vector"
8+
},
9+
{
10+
"path": "metadata.year",
11+
"type": "filter"
12+
}
13+
],
14+
"name": "vector_index",
15+
"type": "vectorSearch",
16+
"database": "llama_index_test_db",
17+
"collectionName": "llama_index_test_filters"
18+
}

0 commit comments

Comments
 (0)