Skip to content

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 2799: ordinal not in range(128) #41

@Raphaelzrf

Description

@Raphaelzrf

retriever = DenseRetriever(
index_name=self.index_name,
model="/data/rfzhang/harmfultext/model/sentence-transformers",
normalize=True,
max_length=128,
use_ann=False,
).index(collection, use_gpu=True)

When I run the above code, UnicodeDecodeError appears. I don't understand why it decodes the input in 'ascii'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions