Qdrant: Retrieve a specific point (vector)
qdrant_retrieve_point.Rdqdrant_retrieve_point retrieves a specific vector (point)
'
Details
Retrieves the value of a specific vector/point, based on its id. It will return a list with all the info available from qdrant.
Examples
conn <- get_qdrant_connection()
#> → Connection to Qdrant confirmed
qdrant_create_new_collection(conn, collection_name="test_db",
vectors=list(size=3,distance="Cosine"))
#> → Collection test_db was just created on the qdrant instance.
new_vectors <- list(points=list(list(id=1, payload=list(text="hi there"),
                      vector=list(0.1,0.5,0.6))))
qdrant_upsert_points(conn, points=new_vectors,collection_name="test_db",generate_id=FALSE)
#> → Vectors were added in the test_db collection on the qdrant instance.
qdrant_retrieve_point(conn, collection_name="test_db", id=1)
#> $result
#> $result$id
#> [1] 1
#> 
#> $result$payload
#> $result$payload$text
#> [1] "hi there"
#> 
#> 
#> $result$vector
#> $result$vector[[1]]
#> [1] 0.1270001
#> 
#> $result$vector[[2]]
#> [1] 0.6350007
#> 
#> $result$vector[[3]]
#> [1] 0.7620008
#> 
#> 
#> 
#> $status
#> [1] "ok"
#> 
#> $time
#> [1] 0.00334085
#> 
qdrant_delete_collection(conn, "test_db")
#> → Collection test_db was just deleted on the qdrant instance.