Feat(vector store): lancedb #82
Annotations
7 errors
Run clippy action:
rig-lancedb/src/lib.rs#L178
error[E0407]: method `top_n_from_query` is not a member of trait `VectorStoreIndex`
--> rig-lancedb/src/lib.rs:178:5
|
178 | / async fn top_n_from_query(
179 | | &self,
180 | | query: &str,
181 | | n: usize,
... |
184 | | self.top_n_from_embedding(&prompt_embedding, n).await
185 | | }
| |_____^ not a member of trait `VectorStoreIndex`
|
Run clippy action:
rig-lancedb/src/lib.rs#L187
error[E0407]: method `top_n_from_embedding` is not a member of trait `VectorStoreIndex`
--> rig-lancedb/src/lib.rs:187:5
|
187 | / async fn top_n_from_embedding(
188 | | &self,
189 | | prompt_embedding: &rig::embeddings::Embedding,
190 | | n: usize,
... |
254 | | .collect())
255 | | }
| |_____^ not a member of trait `VectorStoreIndex`
|
Run clippy action:
rig-lancedb/src/lib.rs#L11
error: unused import: `VectorStore`
--> rig-lancedb/src/lib.rs:11:20
|
11 | vector_store::{VectorStore, VectorStoreError, VectorStoreIndex},
| ^^^^^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`
|
Run clippy action:
rig-lancedb/src/lib.rs#L14
error: unused import: `Insert`
--> rig-lancedb/src/lib.rs:14:13
|
14 | use utils::{Insert, Query};
| ^^^^^^
|
Run clippy action:
rig-lancedb/src/lib.rs#L177
error[E0046]: not all trait items implemented, missing: `top_n`, `top_n_ids`
--> rig-lancedb/src/lib.rs:177:1
|
177 | impl<M: EmbeddingModel + std::marker::Sync + Send> VectorStoreIndex for LanceDbVectorStore<M> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `top_n`, `top_n_ids` in implementation
|
= help: implement the missing item: `fn top_n<T>(&self, _: &str, _: usize) -> impl futures::Future<Output = std::result::Result<std::vec::Vec<(f64, std::string::String, T)>, rig::vector_store::VectorStoreError>> + std::marker::Send where T: serde::Deserialize, T: std::marker::Send { todo!() }`
= help: implement the missing item: `fn top_n_ids(&self, _: &str, _: usize) -> impl futures::Future<Output = std::result::Result<std::vec::Vec<(f64, std::string::String)>, rig::vector_store::VectorStoreError>> + std::marker::Send { todo!() }`
|
Run clippy action:
rig-lancedb/src/lib.rs#L184
error[E0599]: no method named `top_n_from_embedding` found for reference `&LanceDbVectorStore<M>` in the current scope
--> rig-lancedb/src/lib.rs:184:14
|
184 | self.top_n_from_embedding(&prompt_embedding, n).await
| ^^^^^^^^^^^^^^^^^^^^ method not found in `&LanceDbVectorStore<M>`
|
Run clippy action
Clippy has exited with exit code 101
|
Loading