Comments (8)
Hello @lw3259111
Have you tried to reproduce it locally?
(E.g. create a docker instance on your machine and try the very same thing)
from qdrant-client.
create a docker instance on your machine and try the very same thing
@joein It is work when I reproduce it locally,and the URL is work
from qdrant-client.
It seems like problems with the resources (e.g. network)
However you can try to increase timeout during client instantiating and sending request
from qdrant-client.
It seems like problems with the resources (e.g. network) However you can try to increase timeout during client instantiating and sending request
Timeout to 60s is still failed. when I use rust is work.
rust code is
use anyhow::Result;
use qdrant_client::prelude::*;
use qdrant_client::qdrant::vectors_config::Config;
use qdrant_client::qdrant::{
Condition, CreateCollection, Filter, SearchPoints, VectorParams, VectorsConfig,
};
use serde_json::json;
#[tokio::main]
async fn main() -> Result<()> {
// Example of top level client
// You may also use tonic-generated client from `src/qdrant.rs`
let client = QdrantClient::from_url("http://192.168.99.100:6334").build()?;
let collections_list = client.list_collections().await?;
dbg!(collections_list);
// collections_list = ListCollectionsResponse {
// collections: [
// CollectionDescription {
// name: "test",
// },
// ],
// time: 1.78e-6,
// }
let collection_name = "test";
client.delete_collection(collection_name).await?;
client
.create_collection(&CreateCollection {
collection_name: collection_name.into(),
vectors_config: Some(VectorsConfig {
config: Some(Config::Params(VectorParams {
size: 10,
distance: Distance::Cosine.into(),
..Default::default()
})),
}),
..Default::default()
})
.await?;
let collection_info = client.collection_info(collection_name).await?;
dbg!(collection_info);
let payload: Payload = json!(
{
"foo": "Bar",
"bar": 12,
"baz": {
"qux": "quux"
}
}
)
.try_into()
.unwrap();
let points = vec![PointStruct::new(0, vec![12.; 10], payload)];
client
.upsert_points_blocking(collection_name, points, None)
.await?;
let search_result = client
.search_points(&SearchPoints {
collection_name: collection_name.into(),
vector: vec![11.; 10],
filter: Some(Filter::all([Condition::matches("bar", 12)])),
limit: 10,
with_payload: Some(true.into()),
..Default::default()
})
.await?;
dbg!(&search_result);
// search_result = SearchResponse {
// result: [
// ScoredPoint {
// id: Some(
// PointId {
// point_id_options: Some(
// Num(
// 0,
// ),
// ),
// },
// ),
// payload: {
// "bar": Value {
// kind: Some(
// IntegerValue(
// 12,
// ),
// ),
// },
// "foo": Value {
// kind: Some(
// StringValue(
// "Bar",
// ),
// ),
// },
// },
// score: 1.0000001,
// version: 0,
// vectors: None,
// },
// ],
// time: 9.5394e-5,
// }
let found_point = search_result.result.into_iter().next().unwrap();
let mut payload = found_point.payload;
let baz_payload = payload.remove("baz").unwrap().into_json();
println!("baz: {}", baz_payload);
// baz: {"qux":"quux"}
Ok(())
}
from qdrant-client.
Have you tried to launch python code several times?
Tbh, it is hardly reproducible on our side and I haven't yet had any luck with that
from qdrant-client.
Could you provide some exhaustive information / distinguishable details about your setup?
from qdrant-client.
I have the same issue.
How to resolve the visiting another IP error? localhost goes well.
from qdrant-client.
@Bannerli hello, could you provide some exhaustive information / distinguishable details about your setup?
from qdrant-client.
Related Issues (20)
- Inconsistent python versions for grpc and async client generators HOT 2
- Filter by list's element in payload HOT 2
- create_payload_index fails on gRPC when field_schema is set HOT 2
- "The read operation timed out" HOT 5
- Question about QdrantLocal HOT 3
- embedding is None in query reponse HOT 2
- contextual search retrieval with vector metadata? HOT 7
- similarity search with threshold and grouping: no documentation available HOT 2
- add retry mechanism to migrate to avoid crashing due to a single timeout error
- local mode accepts nans in payload, while remote mode does not HOT 1
- Reason behind the python version cap? HOT 2
- Add custom shard key to upload_collection HOT 1
- Requests Timed out HOT 23
- Could you please simplify your filtering syntax? HOT 1
- resolve a misleading comment in method query_embed HOT 3
- upload_records() calls in _migrate_collection() should use wait=True HOT 2
- grpc error when searching using langchain HOT 4
- HasIdCondition filter not applying HOT 1
- cache when deleting collection HOT 3
- [Question] How to stablish a ssl verify false connection using QdrantClient python SDK? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qdrant-client.