-
Notifications
You must be signed in to change notification settings - Fork 151
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
Feat: Add multiple data sources #10
Conversation
for (const source of dataSources) { | ||
switch (source.type) { | ||
case "web": | ||
envs.push( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might we get duplicates with that approach?
|
||
docs = [] | ||
|
||
for doc in get_documents(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not returning all documents here (instead of the iterator)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, we may have more actions for each returned document so i implemented the iterator here, will convert to the document list if the iterator is not needed.
import importlib | ||
|
||
|
||
def get_documents(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's nice
No description provided.