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

Feature/rag list api #215

Merged
merged 7 commits into from
Dec 19, 2024
Merged

Feature/rag list api #215

merged 7 commits into from
Dec 19, 2024

Conversation

bedanley
Copy link
Contributor

Adding RAG List/Delete APIs

The addition of the following APIs will allow a user to list documents for a given repository and collection, as well as delete a select document in the collection. Deleting a document will delete all chunked parts of the original document from the collection.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

embeddings = _get_embeddings(model_name=collection_id, id_token=id_token)
vs = get_vector_store_client(repository_id, index=collection_id, embeddings=embeddings)

doc_search = vs.similarity_search(
Copy link
Member

Choose a reason for hiding this comment

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

Do we really want to do a similarity search here to list out just the documents that have been loaded?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should have been removed. Good catch.

@estohlmann estohlmann merged commit edb64ba into develop Dec 19, 2024
4 checks passed
@estohlmann estohlmann deleted the feature/rag-list-api branch December 19, 2024 07:25
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.

2 participants