Loading multiple documents of the same type #78
Replies: 4 comments
-
I was just writing about EmbedJS here and may have answered my own question. From the EmbedJS readme:
So, instead of adding all loaders in the builder, you can probably just wrap the |
Beta Was this translation helpful? Give feedback.
-
Hello @ashryanbeats, thank you for helping others learn to build quick RAG applications using embedJs. You are indeed correct, one can add loaders at any time using This can be inside a for await loop or even via Promise.all. If you want to add a whole |
Beta Was this translation helpful? Give feedback.
-
Awesome! I tried it out and wrote a blog post explaining it here: https://www.ashryan.io/batch-loading-resources-in-embedjs-for-rag/ |
Beta Was this translation helpful? Give feedback.
-
Sorry I missed my thank you note @ashryanbeats. The library has made progress since then and is easier to use now. |
Beta Was this translation helpful? Give feedback.
-
Hello!
Context
I'm up and running with the following basic setup:
This is working great.
Question
Say for example, I have multiple webpages on the same domain, or multiple text files that I want to pass in.
What is the intended code pattern for loading multiple documents of the same type?
Should I call
addLoader()
with a newXYZLoader
for each document before I build?Beta Was this translation helpful? Give feedback.
All reactions