Skip to content

Combine different version of the Encoder interface [v2] #1735

@KennethEnevoldsen

Description

@KennethEnevoldsen

Currently, we have three, Encoder, EncoderWithSimilarity, EncoderWithConversationEncode.

Encoder and EncoderWithSimilarity can be combined, mentioning that similarity encodes are optional.

Encode conversation is trickier. A proposed solution is to introduce a Document, which is essentially a string if asked to be a string (implement a default aggregation), however, it is possible that the model can handle it as a conversation (would also solve the cases where retrieval documents can have titles and a body.

Metadata

Metadata

Assignees

No one assigned

    Labels

    v2Issues and PRs related to `v2` branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions