This commit is contained in:
prestonrasmussen 2025-09-09 09:55:43 -04:00
parent 76f3e00458
commit f0cf21791e
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ from collections.abc import Iterable
from pydantic import BaseModel, Field
EMBEDDING_DIM = os.getenv('EMBEDDING_DIM', 1024)
EMBEDDING_DIM = int(os.getenv('EMBEDDING_DIM', 1024))
class EmbedderConfig(BaseModel):

View file

@ -259,7 +259,7 @@ def build_aoss_edge_filters(group_ids: list[str], search_filters: SearchFilters)
for and_group in ranges:
and_filters = []
for df in and_group: # df is a DateFilter
range_query = {'range': {field: {df.op: df.value}}}
range_query = {'range': {field: {df.comparison_operator.value: df.date}}}
and_filters.append(range_query)
should_clauses.append({'bool': {'filter': and_filters}})
filters.append({'bool': {'should': should_clauses, 'minimum_should_match': 1}})