SemanticSearchSchema

Schema for semantic search

Subclass of Executable. Type of Executable[SemanticSearchSchemaInput, SemanticSearchSchemaOutput]

Module: implementation.schemas

Methods and properties

Main methods and properties


__init__

Arguments:




SemanticSearchSchemaInput

Subclass of IOModel.


__init__

Arguments:

  • query (List[str])

  • results_count (int)




SemanticSearchSchemaOutput

Subclass of IOModel.


__init__

Arguments:

  • search_results (Dict[str, Any]): Expected keys:

    • "distances" (List[float]): List of distances;

    • "indexes" (List[Any]): Indexes of indexed data;

    • "texts" (List[str]): Texts of results;



Last updated