Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MetalRetriever #613

Merged
merged 3 commits into from
Apr 6, 2023
Merged

Add MetalRetriever #613

merged 3 commits into from
Apr 6, 2023

Conversation

nfcampos
Copy link
Collaborator

@nfcampos nfcampos commented Apr 4, 2023

No description provided.

@vercel
Copy link

vercel bot commented Apr 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchainjs-docs ⬜️ Ignored (Inspect) Visit Preview Apr 6, 2023 10:07am


const items = ("data" in res ? res.data : res) as ResponseItem[];
return items.map(
({ text, metadata }) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we also return a dist which shows the similarity distance when running a search with a text query. Perhaps we should include this in the metadata of Document below?

@softboyjimbo
Copy link
Contributor

One minor comment but this is great! Thanks @nfcampos

@nfcampos nfcampos added the lgtm PRs that are ready to be merged as-is label Apr 6, 2023
@nfcampos nfcampos merged commit 047691f into main Apr 6, 2023
@nfcampos nfcampos deleted the nc/metal-retriever branch April 6, 2023 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm PRs that are ready to be merged as-is
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants