mem0ai / mem0

The Memory layer for your AI apps
https://mem0.ai
Apache License 2.0
21.6k stars 1.97k forks source link

'local' = True, does not work for embedder, only works for llm model #1704

Closed kaust2018 closed 4 weeks ago

kaust2018 commented 4 weeks ago

🐛 Describe the bug

config = { 'llm': { 'provider': 'huggingface', 'config': { 'model': '/local path/gemma-2b', 'local': True, 'top_p': 0.5 } }, 'embedder': { 'provider': 'huggingface', 'config': { 'model': 'local path/all-mpnet-base-v3', 'local': True } } }

gives below error "schema.SchemaError: Key 'embedder' error: Key 'config' error: Wrong key 'local' in {'model': 'xxx/all-mpnet-base-v3/', 'local': True}"