Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MetadataFilter formatting in chat info side bar #504

Open
pmeier opened this issue Sep 9, 2024 · 0 comments
Open

Fix MetadataFilter formatting in chat info side bar #504

pmeier opened this issue Sep 9, 2024 · 0 comments
Assignees

Comments

@pmeier
Copy link
Member

pmeier commented Sep 9, 2024

Reported in #499 (comment).


The snippet below does not honor the indentation

metadata_filters_readable = str(
MetadataFilter.from_primitive(self.current_chat["metadata"]["input"])
).replace("\n", "<br>")

image

form ragna.core import MetadataFilter

print(MetadataFilter.and_([MetadataFilter.in_("document_name", ["foo.md"])]))
AND(
  IN('document_name', ['foo.md']),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants