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

Genearative AI: RAG sample's corpus_name can be either a full file path or the user can pass a corpus id and the file id to the method. #12658

Open
msampathkumar opened this issue Oct 1, 2024 · 0 comments
Assignees
Labels
samples Issues that are directly related to samples.

Comments

@msampathkumar
Copy link
Member

          Note: this can be either a full file path or the user can pass a corpus id and the file id to the method.

From the library:

Args

name
Either a full RagFile resource name must be provided, or a RagCorpus name and a RagFile name must be provided. Format:

    ``projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}``
    or ``{rag_file}``.

corpus_name
If name is not a full resource name, an existing RagCorpus name must be provided. Format:

    ``projects/{project}/locations/{location}/ragCorpora/{rag_corpus}``
    or ``{rag_corpus}``.

Originally posted by @holtskinner in #12612 (comment)

@msampathkumar msampathkumar self-assigned this Oct 1, 2024
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Issues that are directly related to samples.
Projects
None yet
Development

No branches or pull requests

2 participants