-
Notifications
You must be signed in to change notification settings - Fork 609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Glebashnik/feed field generator #32842
base: master
Are you sure you want to change the base?
Conversation
...glanguage/src/main/java/com/yahoo/vespa/indexinglanguage/expressions/GenerateExpression.java
Show resolved
Hide resolved
...glanguage/src/main/java/com/yahoo/vespa/indexinglanguage/expressions/GenerateExpression.java
Outdated
Show resolved
Hide resolved
...glanguage/src/main/java/com/yahoo/vespa/indexinglanguage/expressions/GenerateExpression.java
Outdated
Show resolved
Hide resolved
...glanguage/src/main/java/com/yahoo/vespa/indexinglanguage/expressions/GenerateExpression.java
Outdated
Show resolved
Hide resolved
...glanguage/src/main/java/com/yahoo/vespa/indexinglanguage/expressions/GenerateExpression.java
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,29 @@ | |||
package ai.vespa.generative; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same, I think we could put this in llm.generation
And maybe, since what separates it from Generator isn't that it's generating from a language model, but that it's taking an additional config specifying a prompt, we could call it something like PromptedGenerator, or ConfiguredGenerator?
linguistics/src/main/java/com/yahoo/language/process/Generator.java
Outdated
Show resolved
Hide resolved
linguistics/src/main/java/com/yahoo/language/process/Generator.java
Outdated
Show resolved
Hide resolved
@@ -31,7 +34,7 @@ | |||
* | |||
* @author lesters | |||
*/ | |||
public class LocalLLM extends AbstractComponent implements LanguageModel { | |||
public class LocalLLM extends AbstractComponent implements LanguageModel, Generator { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The role of Generator is to apply a LanguageModel to a generation task specified by a context. This is a more general API so it's a bit messy for it to know about that context (and also to call itself through a utility defined elsewhere). I see the purpose though ... maybe there's a better solution, but I need to get some breakfast now.
I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.