TypeError in 4_embeddings/4_embeddings.ipynb #2

Open
opened 2026-02-15 18:17:03 -05:00 by yindo · 1 comment
Owner

Originally created by @gaborberei on GitHub (Oct 24, 2023).

After running:

# set the batch size to 1 to avoid memory issues
# if you have a large GPU, you can increase this
instructor_embeddings = InstructorEmbeddings(embed_batch_size=1)

I receive this error:

TypeError: Can't instantiate abstract class InstructorEmbeddings with abstract methods _aget_query_embedding, _get_query_embedding, _get_text_embedding, class_name
Originally created by @gaborberei on GitHub (Oct 24, 2023). After running: ``` # set the batch size to 1 to avoid memory issues # if you have a large GPU, you can increase this instructor_embeddings = InstructorEmbeddings(embed_batch_size=1) ``` I receive this error: ``` TypeError: Can't instantiate abstract class InstructorEmbeddings with abstract methods _aget_query_embedding, _get_query_embedding, _get_text_embedding, class_name ```
Author
Owner

@Kitdit commented on GitHub (Dec 1, 2024):

Any solution for this?

@Kitdit commented on GitHub (Dec 1, 2024): Any solution for this?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama_docs_bot#2