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

Provide way to add pre-processing of data before ingest #76

Open
justinhayes opened this issue Apr 4, 2024 · 0 comments
Open

Provide way to add pre-processing of data before ingest #76

justinhayes opened this issue Apr 4, 2024 · 0 comments

Comments

@justinhayes
Copy link
Collaborator

In some cases it is useful to pre-process the text data before it is ingested. One example is to strip out specific pieces of text (e.g. boilerplate language that is on every webpage). Another example is to remove some formatting elements (e.g. if a webpage or a document includes html code in the body then you might want to strip that).

It would be useful to have a config option in the yaml file that lets you provide a list of find-and-replace regexes, like you can do in VIM to do a global replace. Then just before the data is ingested apply those regexes on (a) the text within each section, and (b) the title of the document and of the sections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant