Skip to content

RD-2370: TVEC updates#130

Merged
guruxu merged 5 commits intorosette-api:masterfrom
peblair:rd-2370-tvec-updates
Jul 30, 2018
Merged

RD-2370: TVEC updates#130
guruxu merged 5 commits intorosette-api:masterfrom
peblair:rd-2370-tvec-updates

Conversation

@peblair
Copy link
Copy Markdown
Contributor

@peblair peblair commented Jul 30, 2018

This PR updates the TVEC API model to support per-token embedding responses.

@peblair peblair force-pushed the rd-2370-tvec-updates branch from 53a50a3 to f00fa15 Compare July 30, 2018 18:27
@peblair peblair force-pushed the rd-2370-tvec-updates branch from f00fa15 to b44289c Compare July 30, 2018 18:30
public class TextEmbeddingOptions extends Options {

/**
* @return whether embeddings should be returned for each token
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add in addition to the whole document to avoid possible confusion?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do.

* @return the document embedding vector as a list
*/
private final List<Double> embedding;
private final List<Double> documentEmbedding;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't we deprecating the old one?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm double-checking with Hannah to be sure, but I think the plan is to just make the change (since TVEC is still in "Labs")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, Hannah just confirmed that we can go ahead and just rename the field. She will make sure that the appropriate customers are notified about the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants