ChatSettingsTags

Filter documents by tags for RAG context. Supports two formats: - Array format (backward compatible): [“red”, “blue”] includes documents with ‘red’ OR ‘blue’ tags - Object format (with exclusions): {“include”: [“color”], “exclude”: [“red”, “blue”]}

Properties

Name

Type

Description

Notes

include

List[str]

Include documents with ANY of these tags (OR operation).

[optional]

exclude

List[str]

Exclude documents with ANY of these tags (OR operation). Takes priority over include.

[optional]

Example

from h2ogpte.rest_async.models.chat_settings_tags import ChatSettingsTags

# TODO update the JSON string below
json = "{}"
# create an instance of ChatSettingsTags from a JSON string
chat_settings_tags_instance = ChatSettingsTags.from_json(json)
# print the JSON string representation of the object
print(ChatSettingsTags.to_json())

# convert the object into a dict
chat_settings_tags_dict = chat_settings_tags_instance.to_dict()
# create an instance of ChatSettingsTags from a dict
chat_settings_tags_from_dict = ChatSettingsTags.from_dict(chat_settings_tags_dict)