GoogleCloudPlatform / GoogleCloudPlatform/python-docs-samples

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.

Open
#12,658 0 comments 0 reactions 2 assignees Claimed by @kweinmeister View on GitHub
samples
Dominant language
Jupyter Notebook
Stars
8.1k
Forks
6.7k
Avg merge
4d 2h
Merged PRs (30d)
16

Description

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 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/12612#discussion_r1768829715_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.