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.

Đang mở
#12,658 0 bình luận 0 reaction 2 người được giao Được @kweinmeister nhận Xem trên GitHub
samples
Ngôn ngữ chính
Jupyter Notebook
Star
8.1k
Fork
6.7k
Merge trung bình
4 ngày 2 giờ
Pull request đã merge (30 ngày)
16

Mô tả

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_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.