I am loading some random pdf files as mentioned in the documentation link. Indexing is working, i can see the documents in Couchbase UI. However, the following query always returns empty response
query_engine = index.as_query_engine()
response = query_engine.query(âWhat is xyz?â)
print(response)
I also tried the following
vector_search = VectorSearch.from_vector_query(VectorQuery(âvector_fieldâ,vector))
request = search.SearchRequest.create(vector_search)
result = cluster.search(âvector-indexâ, request)
for row in result.rows():
print(row)
But getting the following error
couchbase.exceptions.QueryIndexNotFoundException: QueryIndexNotFoundException(<ec=17, category=couchbase.common, message=index_not_found (17), context=SearchErrorContext({âlast_dispatched_toâ: â172.23.113.134:8094â, âlast_dispatched_fromâ: â172.23.113.133:51908â, âretry_attemptsâ: 0, âclient_context_idâ: â852c75-0c3e-6147-fcf0-bc3a2644c6defbâ, âmethodâ: âPOSTâ, âpathâ: â/api/index/vector-index/queryâ, âhttp_statusâ: 400, âhttp_bodyâ: â{âerrorâ:ârest_auth: preparePerms, err: index not foundâ,ârequestâ:{âctlâ:{âtimeoutâ:75000},âexplainâ:false,âknnâ:[{âfieldâ:âvector_fieldâ,âkâ:3,âvectorâ:[-0.010490856133401394,-0.040347788482904434,0.03652790188789368]}],âqueryâ:{âmatch_noneâ:null},âshowrequestâ:false},âstatusâ:âfailâ}\nâ, âindex_nameâ: âvector-indexâ, âqueryâ: â{âmatch_noneâ: null}â, âparametersâ: â{âctlâ:{âtimeoutâ:75000},âexplainâ:false,âknnâ:[{âfieldâ:âvector_fieldâ,âkâ:3,âvectorâ:[-0.010490856133401394,-0.040347788482904434,0.03652790188789368]}],âqueryâ:{âmatch_noneâ:null},âshowrequestâ:false}â, âcontext_typeâ: âSearchErrorContextâ}), C Source=/couchbase-python-client/src/search.cxx:552>)