Skip to content

Commit

Permalink
Update demoSearch.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
berkingurcan committed Jul 6, 2024
1 parent a3615a5 commit 040aaac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tools/demoSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,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.275) {
if ((match.score || 1) > 0.255) {
const metadata = match.metadata as Metadata

const guildId = metadata.guild_id;
Expand Down Expand Up @@ -72,7 +72,7 @@ async function formatResults(matches: ScoredPineconeRecord[]) {
export const runTool = (message_content: string) => async (args: {}): Promise<string> => {
try {
const embeddings = await getEmbeddings(message_content)
const matches = await getMatchesFromEmbeddings(embeddings, 15, VECTOR_TYPE)
const matches = await getMatchesFromEmbeddings(embeddings, 20, VECTOR_TYPE)

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

0 comments on commit 040aaac

Please sign in to comment.