Skip to content

Commit

Permalink
chore: No Arc
Browse files Browse the repository at this point in the history
Signed-off-by: Anush008 <[email protected]>
  • Loading branch information
Anush008 committed Oct 29, 2024
1 parent c1d22aa commit 3801d80
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions rig-qdrant/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ use rig::{
vector_store::{VectorStoreError, VectorStoreIndex},
};
use serde::Deserialize;
use std::sync::Arc;

/// Represents a vector store implementation using Qdrant - https://qdrant.tech/ as the backend.

Check failure on line 11 in rig-qdrant/src/lib.rs

View workflow job for this annotation

GitHub Actions / stable / doc

this URL is not a hyperlink
pub struct QdrantVectorStore<M: EmbeddingModel> {
/// Model used to generate embeddings for the vector store
model: Arc<M>,
model: M,
/// Client instance for Qdrant server communication
client: Arc<Qdrant>,
client: Qdrant,
/// Default search parameters
query_params: QueryPoints,
}
Expand All @@ -29,8 +28,8 @@ impl<M: EmbeddingModel> QdrantVectorStore<M> {
/// Reference: https://api.qdrant.tech/v-1-12-x/api-reference/search/query-points

Check failure on line 28 in rig-qdrant/src/lib.rs

View workflow job for this annotation

GitHub Actions / stable / doc

this URL is not a hyperlink
pub fn new(client: Qdrant, model: M, query_params: QueryPoints) -> Self {
Self {
client: Arc::new(client),
model: Arc::new(model),
client,
model,
query_params,
}
}
Expand Down

0 comments on commit 3801d80

Please sign in to comment.