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

[Feature Request] Expose ServiceContext.ts as a separate package #1598

Open
AndreMaz opened this issue Jan 16, 2025 · 0 comments
Open

[Feature Request] Expose ServiceContext.ts as a separate package #1598

AndreMaz opened this issue Jan 16, 2025 · 0 comments

Comments

@AndreMaz
Copy link
Contributor

AndreMaz commented Jan 16, 2025

ATM the contents of ServiceContext.ts are only available by installing the llamaindex package. However, this significantly increases the node_module size and causes deployment issues (see: #1572 and #1580 (comment))

Current behavior

export { serviceContextFromDefaults } from "llamaindex";
// OR
export { serviceContextFromDefaults } from "llamaindex/ServiceContext";

Expected behavior

export { serviceContextFromDefaults } from "@llamaindex/<SOME-PACKAGE>";

Same thing happens with the VectorStoreIndex that's only available via

export { VectorStoreIndex } from "llamaindex"
// OR
export { VectorStoreIndex } from "llamaindex/indices/vectorStore/index";
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

No branches or pull requests

1 participant