abacusai.document_retriever_config
==================================

.. py:module:: abacusai.document_retriever_config


Classes
-------

.. autoapisummary::

   abacusai.document_retriever_config.DocumentRetrieverConfig


Module Contents
---------------

.. py:class:: DocumentRetrieverConfig(client, chunkSize=None, chunkOverlapFraction=None, textEncoder=None, scoreMultiplierColumn=None, pruneVectors=None, indexMetadataColumns=None)

   Bases: :py:obj:`abacusai.return_class.AbstractApiClass`


   A config for document retriever creation.

   :param client: An authenticated API Client instance
   :type client: ApiClient
   :param chunkSize: The size of chunks for vector store, i.e., maximum number of words in the chunk.
   :type chunkSize: int
   :param chunkOverlapFraction: The fraction of overlap between two consecutive chunks.
   :type chunkOverlapFraction: float
   :param textEncoder: The text encoder used to encode texts in the vector store.
   :type textEncoder: str
   :param scoreMultiplierColumn: The values in this metadata column are used to modify the relevance scores of returned chunks.
   :type scoreMultiplierColumn: str
   :param pruneVectors: Corpus specific transformation of vectors that applies dimensional reduction techniques to strip common components from the vectors.
   :type pruneVectors: bool
   :param indexMetadataColumns: If True, metadata columns of the FG will also be used for indexing and querying.
   :type indexMetadataColumns: bool


   .. py:attribute:: chunk_size


   .. py:attribute:: chunk_overlap_fraction


   .. py:attribute:: text_encoder


   .. py:attribute:: score_multiplier_column


   .. py:attribute:: prune_vectors


   .. py:attribute:: index_metadata_columns


   .. py:attribute:: deprecated_keys


   .. py:method:: __repr__()


   .. py:method:: to_dict()

      Get a dict representation of the parameters in this class

      :returns: The dict value representation of the class parameters
      :rtype: dict



