Find answers from the community

Updated 3 months ago

Hi all, I'm currently developing a chat

Hi all, I'm currently developing a chat engine that would use the context of the vector index created from a plain text snippet. But I couldn't find any solutions in the Llamaindex docs that used raw text instead of feeding a list of files through SimpleDirectoryReader. Can anyone please help me on how to achieve this?
L
1 comment
you can index any text if you create the documents/nodes yourself

Plain Text
from llama_index.core import Document
documents = [Document(text="hello")]
Add a reply
Sign up and join the conversation on Discord