Skip to content

Commit

Permalink
fix: add missing options for metadata-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Mini256 committed Jun 3, 2024
1 parent af3f737 commit 6ea82c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/llamaindex/builders/metadata-filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export function buildMetadataFilter (serviceContext: ServiceContext, config: Met
}
return new MetadataPostFilter({
llm,

metadata_fields: config.options?.metadata_fields,
filters: config.options?.filters
});
default:
throw new Error(`Unknown metadata filter provider: ${config.provider}`)
Expand Down

0 comments on commit 6ea82c0

Please sign in to comment.