[Bug]: <title>ValueError: shapes (0,512) and (1024,) not aligned: 512 (dim 1) != 1024 (dim 0)
Do you need to file an issue?
- [ ] I have searched the existing issues and this bug is not already filed.
- [ ] I believe this is a legitimate bug, not just a question or feature request.
Describe the bug
使用Ollama的BGE作为embedding,写的很清楚embedding_dim是512,但是会对query 嵌入成1024的形式
Steps to reproduce
No response
Expected Behavior
No response
LightRAG Config Used
Paste your config here
Logs and screenshots
No response
Additional Information
- LightRAG Version:
- Operating System:
- Python Version:
- Related Issues:
same here
一样 我也遇到了
async def initialize_rag(): rag = LightRAG( working_dir=WORKING_DIR, llm_model_func=ollama_model_complete, llm_model_name="qwen2.5:14b", llm_model_max_async=4, llm_model_max_token_size=32768, llm_model_kwargs={ "host": "http://localhost:11434", "options": {"num_ctx": 32768}, }, embedding_func=EmbeddingFunc( embedding_dim=768, max_token_size=8192, func=lambda texts: ollama_embed( texts, embed_model="quentinz/bge-large-zh-v1.5:latest", host="http://localhost:11434" ), ),
ValueError: shapes (0,768) and (1024,) not aligned: 768 (dim 1) != 1024 (dim 0)