Class: Telnyx::Models::AI::CollectionRetrieveDocumentsParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::AI::CollectionRetrieveDocumentsParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/telnyx/models/ai/collection_retrieve_documents_params.rb,
sig/telnyx/models/ai/collection_retrieve_documents_params.rbs
Overview
Defined Under Namespace
Modules: RetrievalType
Instance Attribute Summary collapse
-
#filter ⇒ Hash{Symbol=>Object}?
Field filters applied before ranking, using
filter[field][operator]=value. -
#page_number ⇒ Integer?
Page number to return (1-based).
-
#page_size ⇒ Integer?
Number of results per page.
-
#query ⇒ String?
Natural-language search query.
-
#retrieval_type ⇒ Symbol, ...
Override the collection's configured retrieval strategy for this request.
- #slug ⇒ String
-
#sources ⇒ String?
Comma-separated list of source types to restrict the search to.
-
#top_k ⇒ Integer?
Maximum number of ranked results to consider.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(slug:, filter: nil, page_number: nil, page_size: nil, query: nil, retrieval_type: nil, sources: nil, top_k: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see CollectionRetrieveDocumentsParams for more details.
- #to_hash ⇒ {
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(slug:, filter: nil, page_number: nil, page_size: nil, query: nil, retrieval_type: nil, sources: nil, top_k: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Telnyx::Models::AI::CollectionRetrieveDocumentsParams for more details.
|
|
# File 'lib/telnyx/models/ai/collection_retrieve_documents_params.rb', line 67
|
Instance Attribute Details
#filter ⇒ Hash{Symbol=>Object}?
Field filters applied before ranking, using filter[field][operator]=value.
Supported operators: eq (default), in, gte, gt, lte, lt, contains.
Known fields: record_type, record_id, user_id, record_created_at,
ingested_at; any other name resolves to a metadata.<field> filter. Example:
filter[record_id][eq]=rec_123.
24 |
# File 'lib/telnyx/models/ai/collection_retrieve_documents_params.rb', line 24 optional :filter, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown] |
#page_number ⇒ Integer?
Page number to return (1-based). Defaults to 1.
30 |
# File 'lib/telnyx/models/ai/collection_retrieve_documents_params.rb', line 30 optional :page_number, Integer |
#page_size ⇒ Integer?
Number of results per page. Defaults to 20.
36 |
# File 'lib/telnyx/models/ai/collection_retrieve_documents_params.rb', line 36 optional :page_size, Integer |
#query ⇒ String?
Natural-language search query. When provided, the text is matched against the
collection's document chunks using the collection's retrieval_type (vector or
hybrid). When omitted, documents are returned as a plain catalog listing.
44 |
# File 'lib/telnyx/models/ai/collection_retrieve_documents_params.rb', line 44 optional :query, String |
#retrieval_type ⇒ Symbol, ...
Override the collection's configured retrieval strategy for this request. Echoed
back in meta.retrieval_type.
51 |
# File 'lib/telnyx/models/ai/collection_retrieve_documents_params.rb', line 51 optional :retrieval_type, enum: -> { Telnyx::AI::CollectionRetrieveDocumentsParams::RetrievalType } |
#slug ⇒ String
14 |
# File 'lib/telnyx/models/ai/collection_retrieve_documents_params.rb', line 14 required :slug, String |
#sources ⇒ String?
Comma-separated list of source types to restrict the search to. When omitted, all of the collection's sources are searched.
58 |
# File 'lib/telnyx/models/ai/collection_retrieve_documents_params.rb', line 58 optional :sources, String |
#top_k ⇒ Integer?
Maximum number of ranked results to consider. When omitted, the collection's
configured top_k setting is used.
65 |
# File 'lib/telnyx/models/ai/collection_retrieve_documents_params.rb', line 65 optional :top_k, Integer |
Instance Method Details
#to_hash ⇒ {
65 |
# File 'sig/telnyx/models/ai/collection_retrieve_documents_params.rbs', line 65
def to_hash: -> {
|