Open mithridatic opened 7 months ago
I suspect Pinecone uses AWS for storage, and aws-west is not free. It seems that aws-east is.
This solved the error for me:
config.yaml
in canopy/config_templates/
(this may be in your virtual environment folder, depending on your setup)region: us-west-2
and set the value to us-east-1
export CANOPY_CONFIG_FILE="path/to/your/config.yaml"
. This adds your config file as an environment variable. Now when you do canopy new
, canopy will detect the config file.Root cause
I see the default spec in kb.create_canopy_index
specifies "us-west-2":
class KnowledgeBase(BaseKnowledgeBase):
def create_canopy_index(self,
spec: Union[Dict, ServerlessSpec, PodSpec] = None,
metric: Optional[str] = "cosine"
):
if spec is None:
spec = ServerlessSpec(
cloud="aws",
region="us-west-2"
)
@izellevy do you know why us-west was originally chosen? Would you accept a PR that wires this region to us-east-1? Happy to contribute.
Is this a new bug?
Current Behavior
I setup canopy. I get an error at 'canopy new'. The reason is because it tries to create a server somewhere besides my region, and to upgrade my plan. The guide on the github page says Starter Plan works for this; I don't understand.
Expected Behavior
A canopy enabled index would be created.
Steps To Reproduce
Relevant log output
Environment
Additional Context
No response