Skip to content

feat(embedding): add opt-in AI/ML API embedder - #16

Open
Lookoff-AIMLAPI wants to merge 1 commit into
KirtiRamchandani:mainfrom
aimlapi:feat/aimlapi-provider
Open

Lookoff-AIMLAPI wants to merge 1 commit into
KirtiRamchandani:mainfrom
aimlapi:feat/aimlapi-provider

Conversation

@Lookoff-AIMLAPI

Copy link
Copy Markdown

Summary

  • Add opt-in --embedder aimlapi with a fixed api.aimlapi.com host, AIMLAPI_API_KEY authentication, and the default model openai/text-embedding-3-small.
  • Disable redirects to prevent forwarding the key to another host.
  • Register the provider in embedding_provider_registry() and document it in docs/embeddings.md.
  • Keep hash as the default embedder. Users who do not select aimlapi retain local-first behavior.

Validation

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace
  • cargo build -p memory-cli
  • docs/examples updated for user-facing changes

Completed 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.
  • Built the CLI and tested init, remember, and recall against the live API using --db <tmp> --embedder aimlapi --dimensions 1536 and workspace demo. 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

  • No secrets, tokens, private keys, or personal absolute paths included
  • Local-first defaults preserved
  • Risky writes remain approval-gated
  • Beta/experimental claims are labeled honestly

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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant