Repository navigation
feat(embedding): add opt-in AI/ML API embedder - #16
Open
Lookoff-AIMLAPI wants to merge 1 commit into
Open
Lookoff-AIMLAPI wants to merge 1 commit into
Lookoff-AIMLAPI wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--embedder aimlapiwith a fixedapi.aimlapi.comhost,AIMLAPI_API_KEYauthentication, and the default modelopenai/text-embedding-3-small.embedding_provider_registry()and document it indocs/embeddings.md.hashas the default embedder. Users who do not selectaimlapiretain local-first behavior.Validation
cargo fmt --all -- --checkcargo clippy --workspace --all-targets -- -D warningscargo test --workspacecargo build -p memory-cliCompleted checks:
cargo test -p memory-core --lib: 85 passed, 0 failed (82 passed before the change).cargo test -p memory-cli: 41 passed, 0 failed (40 passed before the change).cargo fmt --all: applied formatting.cargo clippy -p memory-core -p memory-cli --all-targets: no warnings.init,remember, andrecallagainst the live API using--db <tmp> --embedder aimlapi --dimensions 1536and workspacedemo. All three commands completed; recall returned the stored record. The API key was not printed during this check.The full workspace checks above have not been run. Documentation was updated in
docs/embeddings.md; examples coverage has not been confirmed.Safety
The provider requires explicit selection. Its host is fixed and redirects are disabled. A full diff review for secrets, approval gates, and maturity labels has not been confirmed.