Find answers from the community

Updated 2 years ago

If I want to index data I m getting from

At a glance

The community member asks if they need to write data from an API to temporary files before indexing it, as they have seen examples that use disk I/O. In response, another community member suggests that they can create a Document with an in-memory string and pass that directly to the index, without the need for temporary files. The other community members express agreement and appreciation for this solution.

If I want to index data I'm getting from an API, do I have to write it to temporary files first? I keep seeing examples that use disk IO.
y
a
j
3 comments
You can create a Document with an in-memory string, and then pass that to an index
Sweet, thanks!
yep! thanks @yourbuddyconner
Add a reply
Sign up and join the conversation on Discord