The index file to search into. Mandatory only if the index is not attached
to the output tensor metadata as an AssociatedFile with type SCANN_INDEX_FILE.
The index file can be specified by one of the following two ways:
(1) file contents loaded in index_file_content.
(2) file path in index_file_name.
If more than one field of these fields is provided, they are used in this
precedence order.
Attributes
index_file_name
Path to the index.
index_file_content
The index file contents as bytes.
max_results
Maximum number of nearest neighbor results to return.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-08 UTC."],[],[],null,["# tflite_support.task.processor.SearchOptions\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/python/task/processor/proto/search_options.proto) |\n\nOptions for search processor. \n\n tflite_support.task.processor.SearchOptions(\n index_file_name: Optional[str] = None,\n index_file_content: Optional[bytes] = None,\n max_results: Optional[int] = 5\n )\n\nThe index file to search into. Mandatory only if the index is not attached\nto the output tensor metadata as an AssociatedFile with type SCANN_INDEX_FILE.\nThe index file can be specified by one of the following two ways:\n\n(1) file contents loaded in `index_file_content`.\n(2) file path in `index_file_name`.\n\nIf more than one field of these fields is provided, they are used in this\nprecedence order.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|----------------------|-------------------------------------------------------|\n| `index_file_name` | Path to the index. |\n| `index_file_content` | The index file contents as bytes. |\n| `max_results` | Maximum number of nearest neighbor results to return. |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `create_from_pb2`\n\n[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/python/task/processor/proto/search_options.proto) \n\n @classmethod\n create_from_pb2(\n pb2_obj: _SearchOptionsProto\n ) -\u003e 'SearchOptions'\n\nCreates a `SearchOptionsProto` object from the given protobuf object.\n\n### `to_pb2`\n\n[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/python/task/processor/proto/search_options.proto) \n\n to_pb2() -\u003e _SearchOptionsProto\n\nGenerates a protobuf object to pass to the C++ layer.\n\n### `__eq__`\n\n[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/python/task/processor/proto/search_options.proto) \n\n __eq__(\n other: Any\n ) -\u003e bool\n\nChecks if this object is equal to the given object.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ||\n|---------|---------------------------------|\n| `other` | The object to be compared with. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---|---|\n| True if the objects are equal. ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Class Variables --------------- ||\n|--------------------|--------|\n| index_file_content | `None` |\n| index_file_name | `None` |\n| max_results | `5` |\n\n\u003cbr /\u003e"]]