Skip to content

Commit 5717dd8

Browse files
authored
Allow configuration of service context and storage context in managed index (run-llama#8487)
wip
1 parent de09382 commit 5717dd8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llama_index/indices/managed/base.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,17 @@ def __init__(
3030
self,
3131
nodes: Optional[Sequence[BaseNode]] = None,
3232
index_struct: Optional[IndexDict] = None,
33+
storage_context: Optional[StorageContext] = None,
34+
service_context: Optional[ServiceContext] = None,
3335
show_progress: bool = False,
3436
**kwargs: Any,
3537
) -> None:
3638
"""Initialize params."""
3739
super().__init__(
3840
nodes=nodes,
3941
index_struct=index_struct,
40-
service_context=None,
41-
storage_context=None,
42+
service_context=service_context,
43+
storage_context=storage_context,
4244
show_progress=show_progress,
4345
**kwargs,
4446
)

0 commit comments

Comments
 (0)