Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
acatav committed Oct 29, 2023
1 parent 3f26a52 commit e83ca8d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/canopy/knowledge_base/knowledge_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@


def list_canopy_indexes() -> List[str]:
"""
List all Canopy indexes in the current Pinecone account.
Example:
>>> from canopy.knowledge_base import list_canopy_indexes
>>> list_canopy_indexes()
['canopy--my_index', 'canopy--my_index2']
Returns:
A list of Canopy index names.
"""

try:
pinecone_init()
Expand Down

0 comments on commit e83ca8d

Please sign in to comment.