Closed tomaarsen closed 10 months ago
CohereEncoder (i.e. the class from pinecone_text) was being exported via __init__.py rather than CohereRecordEncoder.
CohereEncoder
pinecone_text
__init__.py
CohereRecordEncoder
I replaced CohereEncoder with CohereRecordEncoder.
You can try to import CohereRecordEncoder via canopy.knowledge_base.record_encoder - this was not possible before.
canopy.knowledge_base.record_encoder
Problem
CohereEncoder
(i.e. the class frompinecone_text
) was being exported via__init__.py
rather thanCohereRecordEncoder
.Solution
I replaced
CohereEncoder
withCohereRecordEncoder
.Type of Change
Test Plan
You can try to import
CohereRecordEncoder
viacanopy.knowledge_base.record_encoder
- this was not possible before.