pinecone-io / canopy

Retrieval Augmented Generation (RAG) framework and context engine powered by Pinecone
https://www.pinecone.io/
Apache License 2.0
976 stars 121 forks source link

__init__ fix: CohereEncoder -> CohereRecordEncoder #264

Closed tomaarsen closed 10 months ago

tomaarsen commented 10 months ago

Problem

CohereEncoder (i.e. the class from pinecone_text) was being exported via __init__.py rather than CohereRecordEncoder.

Solution

I replaced CohereEncoder with CohereRecordEncoder.

Type of Change

Test Plan

You can try to import CohereRecordEncoder via canopy.knowledge_base.record_encoder - this was not possible before.