Skip to content

Commit

Permalink
fix issue 15
Browse files Browse the repository at this point in the history
  • Loading branch information
tullytim committed Dec 31, 2023
1 parent d253a8b commit 0ea2f31
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Pinecone.jl
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,10 @@ function query(ctx::PineconeContext, indexobj::PineconeIndex, queries::Vector{Ve
throw(ArgumentError("topk larger than largest topk available of " * string(MAX_TOPK_WITH_META) * " when including meatadata in results"))
end
url = pineconeMakeURLForIndex(indexobj, ctx, ENDPOINTQUERYINDEX)
body = Dict{String, Any}("topK"=>topk, "includeValues"=>includevalues, "includeMetadata"=>includemeta, "namespace"=>namespace)
body = Dict{String, Any}("topK"=>topk, "vector"=>[], "includeValues"=>includevalues, "includeMetadata"=>includemeta, "namespace"=>namespace)
if(length(filter) > 0)
body["filter"] = filter;
end
body["vector"] = []
for vec in queries
push!(body["vector"], Dict{String, Any}("values"=>vec))
end
Expand Down

0 comments on commit 0ea2f31

Please sign in to comment.