Skip to content
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

Closed
wants to merge 11 commits into from
Closed

Conversation

leehuwuj
Copy link
Collaborator

No description provided.

for (const source of dataSources) {
switch (source.type) {
case "web":
envs.push(
Copy link
Collaborator

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():
Copy link
Collaborator

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)?

Copy link
Collaborator Author

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():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's nice

@leehuwuj leehuwuj closed this Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants