✏️ 正在编辑: vector_store.cpython-312.pyc
路径:
/var/opt/nydus/ops/mysql/ai/genai/__pycache__/vector_store.cpython-312.pyc
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
� ��'jzH � � � d Z ddlZddlmZmZmZmZmZmZ ddl Z ddlmZ ddl mZ ddlmZ ddlmZ ddlmZ dd lmZmZmZmZmZmZmZmZmZmZ dd l m!Z! dZ"dZ#e� d �Z$e� d�Z%e� d�Z&e� d�Z'e� d�Z(dZ) G d� de� Z*y)z�MySQL-backed vector store for embeddings and semantic document retrieval. Provides a VectorStore implementation persisting documents, metadata, and embeddings in MySQL, plus similarity search utilities. � N)�Any�Iterable�List�Optional�Sequence�Union)�Document)� Embeddings)�VectorStore)�PrivateAttr)�MyEmbeddings) �VAR_NAME_SPACE�atomic_transaction�delete_sql_table�execute_sql�extend_sql_table�format_value_sql�get_random_name�is_table_empty� source_schema�table_exists)�MySQLConnectionAbstractzHello world!�external_sourcez .embeddingz.contextz.context_mapz.retrieval_infoz.options�internal_ai_id_c �( � � e Zd ZU dZ e� Zeed<