Skip to content

Commit 940d420

Browse files
committed
Add source_collection to create_index
1 parent 989a921 commit 940d420

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pinecone/manage.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ def create_index(
7474
pods: int = 1,
7575
pod_type: str = 'p1',
7676
index_config: dict = None,
77-
metadata_config: dict = None
77+
metadata_config: dict = None,
78+
source_collection: str = None,
7879
):
7980
"""Creates a Pinecone index.
8081
@@ -105,6 +106,8 @@ def create_index(
105106
:param index_config: Advanced configuration options for the index
106107
:param metadata_config: Configuration related to the metadata index
107108
:type metadata_config: dict, optional
109+
:param source_collection: Collection name to create the index from
110+
:type metadata_config: str, optional
108111
:type timeout: int, optional
109112
:param timeout: Timeout for wait until index gets ready. If None, wait indefinitely; if >=0, time out after this many seconds; if -1, return immediately and do not wait. Default: None
110113
"""
@@ -120,7 +123,8 @@ def create_index(
120123
pods=pods,
121124
pod_type=pod_type,
122125
index_config=index_config or {},
123-
metadata_config=metadata_config
126+
metadata_config=metadata_config,
127+
source_collection=source_collection
124128
))
125129

126130
def is_ready():

0 commit comments

Comments
 (0)