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

RAG in the SDK #1453

Merged
merged 4 commits into from May 20, 2024
Merged

RAG in the SDK #1453

merged 4 commits into from May 20, 2024

Conversation

SilasMarvin
Copy link
Contributor

No description provided.

@SilasMarvin SilasMarvin marked this pull request as ready for review May 20, 2024 17:29
.is_empty());

// Multi-variable test
let results = collection
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@montanalow This is an example of the kind of query you can do

@@ -92,29 +92,30 @@ it("can search", async () => {
query: {
full_text_search: { body: { query: "Test", boost: 1.2 } },
semantic_search: {
title: { query: "This is a test", boost: 2.0 },
Copy link
Contributor

Choose a reason for hiding this comment

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

Not for this PR, but in the future it might be nice to have a "needle" document, and use it's ID, so you don't have unstable result IDs because all the documents are equally similar "This is a test document".

@SilasMarvin SilasMarvin merged commit d83bc45 into master May 20, 2024
1 check passed
@SilasMarvin SilasMarvin deleted the silas-add-rag-in-the-sdk branch May 20, 2024 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants