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 weaviate samples #60

Merged
merged 15 commits into from
Apr 7, 2023
Merged

Add weaviate samples #60

merged 15 commits into from
Apr 7, 2023

Conversation

nadheesh
Copy link
Contributor

@nadheesh nadheesh commented Mar 22, 2023

answer_questions_using_vector_search_weaviate/main.bal Outdated Show resolved Hide resolved
answer_questions_using_vector_search_weaviate/main.bal Outdated Show resolved Hide resolved
answer_questions_using_vector_search_weaviate/main.bal Outdated Show resolved Hide resolved
answer_questions_using_vector_search_weaviate/main.bal Outdated Show resolved Hide resolved
answer_questions_using_vector_search_weaviate/README.md Outdated Show resolved Hide resolved
insert_data_to_vector_db_weaviate/main.bal Outdated Show resolved Hide resolved
insert_data_to_vector_db_weaviate/main.bal Outdated Show resolved Hide resolved
insert_data_to_vector_db_weaviate/main.bal Outdated Show resolved Hide resolved
insert_data_to_vector_db_weaviate/main.bal Outdated Show resolved Hide resolved
insert_data_to_vector_db_weaviate/README.md Outdated Show resolved Hide resolved
@@ -0,0 +1,44 @@
# Insert a set of embedding vectors to Weaviate
Copy link
Contributor

Choose a reason for hiding this comment

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

Readme file doesn't mention anything about data/ folder.

Copy link
Contributor

@oshadajay oshadajay Apr 3, 2023

Choose a reason for hiding this comment

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

L21 of README.md instructs the user to Create a new Google sheet in your Google account and import data/data.csv to the sheet from columns **A:C**.

}
}
if failedQuestions.length() > 0 {
return error("Failed to insert embedding vectors for the questions: " + failedQuestions.toString());
Copy link
Contributor

Choose a reason for hiding this comment

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

Can use string templates.

Copy link
Contributor

@oshadajay oshadajay Apr 3, 2023

Choose a reason for hiding this comment

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

string Failed to insert embedding vectors for the questions: ${failedQuestions} is not supported since a string vector array is incompatible.

@AathmanT AathmanT merged commit 592409b into ballerina-guides:main Apr 7, 2023
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.

7 participants