Skip to content

Commit

Permalink
fix: revert returnMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasgriffintn committed Aug 25, 2024
1 parent 5ea6355 commit f627d8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/vectorize/src/handlers/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ async function getQueryVector(
async function getMatches(queryVector: EmbeddingResponse, env: Env) {
return env.VECTORIZE.query(queryVector.data[0], {
topK: 15,
returnMetadata: 'indexed',
returnMetadata: true,
});
}
2 changes: 1 addition & 1 deletion apps/web/app/lib/ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ export async function getMatches(queryVector: EmbeddingResponse, env: Env) {

return env.VECTORIZE.query(queryVector.data[0], {
topK: 15,
returnMetadata: 'indexed',
returnMetadata: true,
});
}

0 comments on commit f627d8b

Please sign in to comment.