Advanced MultiStep Chunk search

Performs a vector hybrid search and then an advanced chunk search.

Chunk Search allows one to search through chunks inside a document. The major difference between chunk search and normal search in Vector AI is that it relies on the chunkvector field.
Chunk Vector Search. Search with a multiple chunkvectors for the most similar documents.
Chunk search also supports filtering to only search through filtered results and facets to get the overview of products available when a minimum score is set.

Example 1 (Hybrid chunk search):

chunk_query1= {
    "chunk" : "some.test",
    "queries" : [
        {"vector" : vec1, "fields": {"some.test.some_chunkvector_":1},
        "traditional_query" : {"text":"python", "fields" : ["some.test.test_words"], "traditional_weight": 0.3},
        "metric" : "cosine"},
        {"vector" : vec, "fields": ["some.test.tt.some_other_chunkvector_"],
        "traditional_query" : {"text":"jumble", "fields" : ["some.test.test_words"], "traditional_weight": 0.3},
        "metric" : "cosine"},
    ]
}

Example 2 (combines normal vector search with chunk search):

chunk_query1= {
"queries" : [
    {
        "queries": [
            {
                "vector": vec1,
                "fields": {
                    "some.test.some_chunkvector_": 0.9
                },
                "traditional_query": {
                    "text": "python",
                    "fields": [
                        "some.test.test_words"
                    ],
                    "traditional_weight": 0.3
                },
                "metric": "cosine"
            }
        ],
        "chunk": "some.test",
    },
    {
        "vector" : vec,
        "fields": {
            ".some_vector_" : 0.1},
            "metric" : "cosine"
            },
    ]
}
Language
Click Try It! to start a request and see the response here!