| 1234567891011121314151617181920212223 |
- # @description:
- # @author: licanglong
- # @date: 2025/12/11 11:43
- # from qdrant_client import QdrantClient
- #
- # client = QdrantClient(host="localhost", port=6333)
- #
- # # 插入向量
- # client.upsert(
- # collection_name="embedding_example",
- # points=[
- # {
- # "id": 1,
- # "vector": embedding_1.tolist(), # 由模型生成
- # "payload": {"text": "I love NLP"}
- # },
- # {
- # "id": 2,
- # "vector": embedding_2.tolist(),
- # "payload": {"text": "I love machine learning"}
- # }
- # ]
- # )
|