Skip to content

Commit

Permalink
Update proto.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
berkingurcan committed Nov 15, 2024
1 parent e180018 commit 51c8a81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tools/proto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function formatResults(matches: ScoredPineconeRecord[]) {
const results = []
for (let i = 0; i < matches.length; i++) {
const match = matches[i]
if ((match.score || 1) > 0.55) {
if ((match.score || 1) > 0.12) {
const metadata = match.metadata as Metadata
const title = metadata.text
const text = metadata.text
Expand All @@ -50,7 +50,7 @@ async function formatResults(matches: ScoredPineconeRecord[]) {
async function runTool(args: { query: string }): Promise<string> {
try {
const embeddings = await getEmbeddings(args.query)
const matches = await getMatchesFromEmbeddings(embeddings, 5, VECTOR_TYPE)
const matches = await getMatchesFromEmbeddings(embeddings, 10, VECTOR_TYPE)

return formatResults(matches)
} catch (e) {
Expand Down

0 comments on commit 51c8a81

Please sign in to comment.