mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-06 08:16:00 +00:00
feat: Resolve conflict, auto committed by CodeFlow
This commit is contained in:
commit
ad65f3592e
2 changed files with 3 additions and 2 deletions
|
|
@ -27,7 +27,8 @@ class LlamaIndexEsMemoryStore(BaseMemoryStore):
|
|||
retrieval_strategy = ESCombinedRetrieveStrategy(retrieve_mode=retrieve_mode, hybrid_alpha=hybrid_alpha)
|
||||
self.es_store = SyncElasticsearchStore(index_name=index_name,
|
||||
es_url=es_url,
|
||||
retrieval_strategy=retrieval_strategy,
|
||||
retrieval_strategy=ESCombinedRetrieveStrategy(retrieve_mode=retrieve_mode,
|
||||
hybrid_alpha=hybrid_alpha),
|
||||
**kwargs)
|
||||
|
||||
# TODO The llamaIndex utilizes some deprecated functions, hence langchain logs warning messages. By
|
||||
|
|
|
|||
|
|
@ -267,7 +267,7 @@ def _to_elasticsearch_filter(standard_filters: Dict[str, List[str]]) -> Dict[str
|
|||
}
|
||||
}
|
||||
)
|
||||
result['bool'].update({"should": operands}) # ⭐ Add 'should' clause for OR logic
|
||||
result['bool'].update({"should": operands}) # тнР Add 'should' clause for OR logic
|
||||
result['bool'].update({"minimum_should_match": 1}) # Ensure at least one 'should' match
|
||||
else:
|
||||
key_str = f"metadata.{key}.keyword" if isinstance(value, str) else f"metadata.{key}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue