You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following script (also in samples extract-quotes.genai.js). Am I misunderstanding how to make the
rest of the prompt (including the FILE def interact with the AICI.gen call?
script({title: "extract-quotes-AICI",model: "aici:mixtral",system: [],})// use def to emit LLM variablesconst{ file, pages }=awaitparsers.PDF(env.files[0])def("FILE",file.content)// use $ to output formatted text to the prompt$`You are a helpful assistant.
Given the FILE, extract three exact quotes from the document
that could be used in a 1 paragraph press release that
would both give the audience an understanding of the
idea and make them want to learn more.
Quote 1: ${AICI.gen({substring: file.content,maxTokens: 1000,storeVar: "quote1"})}
Quote 2: ${AICI.gen({substring: file.content,maxTokens: 1000,storeVar: "quote2"})}
Quote 3: ${AICI.gen({substring: file.content,maxTokens: 1000,storeVar: "quote3"})}
I ran this on the file in samples/src/bztest/test1.pdf and the output was:
You are a helpful assistant. Given the FILE, extract three exact quotes from the document that could be used in a 1 paragraph press release that would both give the audience an understanding of the idea and make them want to learn more.
Quote 1: " Quote 2: " Quote 3: "
I have the following script (also in samples extract-quotes.genai.js). Am I misunderstanding how to make the
rest of the prompt (including the FILE def interact with the AICI.gen call?
I ran this on the file in samples/src/bztest/test1.pdf and the output was:
The AICI args were:
The text was updated successfully, but these errors were encountered: