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

Unstructured in memory loader #5726

Merged
merged 9 commits into from
Jun 11, 2024
Merged

Conversation

jacoblee93
Copy link
Collaborator

Builds off of #5581 with lint and docs

CC @andrewdoro

Copy link

vercel bot commented Jun 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 11, 2024 6:16pm
langchainjs-docs 🛑 Canceled (Inspect) 💬 Add feedback Jun 11, 2024 6:16pm

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. auto:improvement Medium size change to existing code to handle new use-cases labels Jun 11, 2024
@@ -29,6 +30,34 @@ test.skip("Test Unstructured base loader", async () => {
}
Copy link

Choose a reason for hiding this comment

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

Hey team, just wanted to flag this PR for review as it includes changes that access an environment variable via process.env to obtain the API key for the options object. Please take a look and ensure everything is handled securely. Thanks!

@@ -167,20 +179,28 @@ export class UnstructuredLoader extends BaseDocumentLoader {
private maxCharacters?: number;
Copy link

Choose a reason for hiding this comment

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

Hey there! I've reviewed the code and noticed that the recent change in the unstructured.ts file accesses an environment variable using getEnvironmentVariable. I've flagged this for your review to ensure it aligns with the intended functionality. Let me know if you need further assistance!

@@ -29,6 +30,34 @@ test.skip("Test Unstructured base loader", async () => {
}
Copy link

Choose a reason for hiding this comment

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

Hey team, I've flagged this PR for your review as it adds code that explicitly accesses an environment variable via process.env. Please take a look to ensure that the handling of environment variables aligns with best practices and security guidelines.

@andrewdoro
Copy link
Contributor

great I think you can close my PR, thanks for help with linting🔥

@jacoblee93
Copy link
Collaborator Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:improvement Medium size change to existing code to handle new use-cases size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants