langchain_community.vectorstores.apache_doris
.ApacheDorisSettings¶
- class langchain_community.vectorstores.apache_doris.ApacheDorisSettings[source]¶
Bases:
BaseSettings
Apache Doris client configuration.
- apache_doris_host¶
An URL to connect to frontend. Defaults to ‘localhost’.
- Type
str
- apache_doris_port¶
URL port to connect with HTTP. Defaults to 9030.
- Type
int
- username¶
Username to login. Defaults to ‘root’.
- Type
str
- password¶
Password to login. Defaults to None.
- Type
str
- database¶
Database name to find the table. Defaults to ‘default’.
- Type
str
- table¶
Table name to operate on. Defaults to ‘langchain’.
- Type
str
- column_map¶
Column type map to project column name onto langchain semantics. Must have keys: text, id, vector, must be same size to number of columns. For example: .. code-block:: python
- {
‘id’: ‘text_id’, ‘embedding’: ‘text_embedding’, ‘document’: ‘text_plain’, ‘metadata’: ‘metadata_dictionary_in_json’,
}
Defaults to identity map.
- Type
Dict
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- param column_map: Dict[str, str] = {'document': 'document', 'embedding': 'embedding', 'id': 'id', 'metadata': 'metadata'}¶
- param database: str = 'default'¶
- param host: str = 'localhost'¶
- param password: str = ''¶
- param port: int = 9030¶
- param table: str = 'langchain'¶
- param username: str = 'root'¶