repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | from typing import Literal, Optional |
| #2 | |
| #3 | from mem0.embeddings.base import EmbeddingBase |
| #4 | |
| #5 | |
| #6 | class MockEmbeddings(EmbeddingBase): |
| #7 | def embed(self, text, memory_action: Optional[Literal["add", "search", "update"]] = None): |
| #8 | """ |
| #9 | Generate a mock embedding with dimension of 10. |
| #10 | """ |
| #11 | return [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0] |
| #12 |