Skip to content

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

Description

@msampathkumar
          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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

samplesIssues that are directly related to samples.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions