Git Product home page Git Product logo

Comments (4)

suryaa62 avatar suryaa62 commented on September 26, 2024 1

How to reproduce error:

import qdrant_client
from qdrant_client.http import models

client = qdrant_client.QdrantClient("localhost", port=6333)

client.recreate_collection(
    collection_name="test",
    vectors_config=models.VectorParams(size=3, distance=models.Distance.COSINE),
)

client.upsert(collection_name="test" , points= [ models.PointStruct(
	id = 2,
	payload = {
		"document_id" : "1234",
	},

	vector=[0.9 , 0.1 , 0.3],
) ] )

record = client.retrieve(collection_name="test" , ids=[2] , with_vector=True)

print(record)

Output: [Record(id=2, payload={'document_id': '1234'}, vector=None)]

from qdrant-client.

joein avatar joein commented on September 26, 2024 1

Hi, it is with_vectors, not with_vector, additional assert statements will be introduced in the next release to avoid such situations

from qdrant-client.

dhruv-anand-aintech avatar dhruv-anand-aintech commented on September 26, 2024 1

thanks for the clarification

from qdrant-client.

suryaa62 avatar suryaa62 commented on September 26, 2024

if I use the rest api to get the same point, I get the vector in the response

python version : 3.10.9

from qdrant-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.