Class: Telnyx::Models::AISearchConversationHistoriesParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::AISearchConversationHistoriesParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/telnyx/models/ai_search_conversation_histories_params.rb
Overview
Defined Under Namespace
Modules: RecordType, Region
Instance Attribute Summary collapse
-
#filter_document_id ⇒ String?
Filter by document identifier (exact match).
-
#filter_ingested_at_gte ⇒ Time?
Only include records ingested (chunked, embedded, and indexed) on or after this ISO 8601 timestamp.
-
#filter_ingested_at_lte ⇒ Time?
Only include records ingested (chunked, embedded, and indexed) on or before this ISO 8601 timestamp.
-
#filter_record_created_at_gte ⇒ Time?
Only include records whose original creation time is on or after this ISO 8601 timestamp.
-
#filter_record_created_at_lte ⇒ Time?
Only include records whose original creation time is on or before this ISO 8601 timestamp.
-
#filter_record_id ⇒ String?
Filter to chunks belonging to a specific parent record (exact match).
-
#filter_region_in ⇒ String?
Filter by the region stored on the record.
-
#filter_retention ⇒ String?
Filter by retention policy (exact match).
-
#filter_user_id ⇒ String?
Filter to records owned by a specific user (exact match).
-
#min_score ⇒ Float?
Minimum cosine similarity score threshold (0.0 to 1.0).
-
#q ⇒ String
Natural language search query.
-
#record_type ⇒ Symbol, Telnyx::Models::AISearchConversationHistoriesParams::RecordType
The type of records to search.
-
#region ⇒ Symbol, ...
Restrict search to a specific region’s OpenSearch cluster.
-
#top_k ⇒ Integer?
Maximum number of results to return.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(q:, record_type:, filter_document_id: nil, filter_ingested_at_gte: nil, filter_ingested_at_lte: nil, filter_record_created_at_gte: nil, filter_record_created_at_lte: nil, filter_record_id: nil, filter_region_in: nil, filter_retention: nil, filter_user_id: nil, min_score: nil, region: nil, top_k: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see AISearchConversationHistoriesParams for more details.
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(q:, record_type:, filter_document_id: nil, filter_ingested_at_gte: nil, filter_ingested_at_lte: nil, filter_record_created_at_gte: nil, filter_record_created_at_lte: nil, filter_record_id: nil, filter_region_in: nil, filter_retention: nil, filter_user_id: nil, min_score: nil, region: nil, top_k: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Telnyx::Models::AISearchConversationHistoriesParams for more details.
|
|
# File 'lib/telnyx/models/ai_search_conversation_histories_params.rb', line 107
|
Instance Attribute Details
#filter_document_id ⇒ String?
Filter by document identifier (exact match). Populated for knowledge_base records.
29 |
# File 'lib/telnyx/models/ai_search_conversation_histories_params.rb', line 29 optional :filter_document_id, String |
#filter_ingested_at_gte ⇒ Time?
Only include records ingested (chunked, embedded, and indexed) on or after this ISO 8601 timestamp.
36 |
# File 'lib/telnyx/models/ai_search_conversation_histories_params.rb', line 36 optional :filter_ingested_at_gte, Time |
#filter_ingested_at_lte ⇒ Time?
Only include records ingested (chunked, embedded, and indexed) on or before this ISO 8601 timestamp.
43 |
# File 'lib/telnyx/models/ai_search_conversation_histories_params.rb', line 43 optional :filter_ingested_at_lte, Time |
#filter_record_created_at_gte ⇒ Time?
Only include records whose original creation time is on or after this ISO 8601 timestamp.
50 |
# File 'lib/telnyx/models/ai_search_conversation_histories_params.rb', line 50 optional :filter_record_created_at_gte, Time |
#filter_record_created_at_lte ⇒ Time?
Only include records whose original creation time is on or before this ISO 8601 timestamp.
57 |
# File 'lib/telnyx/models/ai_search_conversation_histories_params.rb', line 57 optional :filter_record_created_at_lte, Time |
#filter_record_id ⇒ String?
Filter to chunks belonging to a specific parent record (exact match).
63 |
# File 'lib/telnyx/models/ai_search_conversation_histories_params.rb', line 63 optional :filter_record_id, String |
#filter_region_in ⇒ String?
Filter by the region stored on the record. Comma-separated to match multiple regions (USA, DEU, AUS, UAE). Distinct from the ‘region` parameter, which selects which cluster(s) are queried.
71 |
# File 'lib/telnyx/models/ai_search_conversation_histories_params.rb', line 71 optional :filter_region_in, String |
#filter_retention ⇒ String?
Filter by retention policy (exact match). Filter-only: not returned in the response body.
78 |
# File 'lib/telnyx/models/ai_search_conversation_histories_params.rb', line 78 optional :filter_retention, String |
#filter_user_id ⇒ String?
Filter to records owned by a specific user (exact match).
84 |
# File 'lib/telnyx/models/ai_search_conversation_histories_params.rb', line 84 optional :filter_user_id, String |
#min_score ⇒ Float?
Minimum cosine similarity score threshold (0.0 to 1.0). Results below this threshold are excluded.
91 |
# File 'lib/telnyx/models/ai_search_conversation_histories_params.rb', line 91 optional :min_score, Float |
#q ⇒ String
Natural language search query. The text is embedded into a 1024-dimensional vector and compared against indexed record chunks using kNN cosine similarity.
15 |
# File 'lib/telnyx/models/ai_search_conversation_histories_params.rb', line 15 required :q, String |
#record_type ⇒ Symbol, Telnyx::Models::AISearchConversationHistoriesParams::RecordType
The type of records to search. Each record type is stored in a separate vector index.
22 |
# File 'lib/telnyx/models/ai_search_conversation_histories_params.rb', line 22 required :record_type, enum: -> { Telnyx::AISearchConversationHistoriesParams::RecordType } |
#region ⇒ Symbol, ...
Restrict search to a specific region’s OpenSearch cluster. When omitted, all regions are queried in parallel (fan-out) and results are merged by cosine similarity score.
99 |
# File 'lib/telnyx/models/ai_search_conversation_histories_params.rb', line 99 optional :region, enum: -> { Telnyx::AISearchConversationHistoriesParams::Region } |
#top_k ⇒ Integer?
Maximum number of results to return. Defaults to 20, maximum 100.
105 |
# File 'lib/telnyx/models/ai_search_conversation_histories_params.rb', line 105 optional :top_k, Integer |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/telnyx/models/ai_search_conversation_histories_params.rb', line 151
|