Skip to content

Commit f90d335

Browse files
Update version to 0.5.6 for embed_anything and related packages in Cargo.toml and Cargo.lock; refactor embed method in cohere.rs to remove commented-out code for cleaner implementation.
1 parent 55af917 commit f90d335

File tree

3 files changed

+5
-20
lines changed

3 files changed

+5
-20
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ description = "Embed anything at lightning speed"
1515
repository = "https://github.com/StarlightSearch/EmbedAnything"
1616
authors = ["Akshay Ballal <arballal95@gmail.com>"]
1717
exclude = ["test_files/*", "python", "*.py", "pyproject.toml", "examples/images/*", "mkdocs.yml", "docs/*", "tests/*", ".github", "Dockerfile", "docs"]
18-
version = "0.5.5"
18+
version = "0.5.6"
1919

2020
[workspace.dependencies]
2121
pdf-extract = "0.7.7"

rust/src/embeddings/cloud/cohere.rs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -88,22 +88,7 @@ impl CohereEmbedder {
8888
}
8989

9090
pub async fn embed(&self, text_batch: &[&str]) -> Result<Vec<EmbeddingResult>, anyhow::Error> {
91-
// let response = self
92-
// .client
93-
// .post(&self.url)
94-
// .header("Accept", "application/json")
95-
// .header("Content-Type", "application/json")
96-
// .header("Authorization", format!("Bearer {}", self.api_key))
97-
// .json(&json!({
98-
// "texts": text_batch,
99-
// "model": self.model,
100-
// "input_type": "search_document",
101-
// "embedding_types": ["float"]
102-
// }))
103-
// .send()
104-
// .await?;
105-
106-
// println!("🔍 Response: {:?}", response.text().await?);
91+
10792
let response = self
10893
.client
10994
.post(&self.url)

0 commit comments

Comments
 (0)