You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue in apps/docs/docs/modules/ingestion_pipeline/transformations.md
There is an issue with an example of ingestion/transformation on the documentation site.
Regarding custom transformations (website here | doc page in repo here), it's shown you need to implement a transform method on an extension of the TransformComponent class:
asyncfunctionmain(){constpipeline=newIngestionPipeline({transformations: [newRemoveSpecialCharacters()],});constnodes=awaitpipeline.run({documents: [newDocument({text: "I am 10 years old. John is 20 years old."}),],});for(constnodeofnodes){console.log(node.getContent(MetadataMode.NONE));}}
However, the implementation of TransformComponent expects a transform function to be passed to the constructor (code here, in packages/core/src/schema/types.ts)
There is an issue with an example of ingestion/transformation on the documentation site.
Regarding custom transformations (website here | doc page in repo here), it's shown you need to implement a transform method on an extension of the TransformComponent class:
Then use it like this:
However, the implementation of
TransformComponent
expects a transform function to be passed to the constructor (code here, inpackages/core/src/schema/types.ts
)This means we get a type error when using the code from the docs:
The text was updated successfully, but these errors were encountered: