Advanced Chunk search

A more advanced chunk search to be able to combine vector search and chunk search in many different ways.

chunk_query = {
    "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_query = {
    "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!