Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fbc688b8f9 |
@@ -7,11 +7,11 @@ export const triggerEventSetup: GraphNode<typeof MessagesState> = async (state)
|
||||
let nc = state?.messages?.at(-1)?.content ?? "" //keep a copy of normalized trigger event. Again two things, womp womp
|
||||
|
||||
//Now give in-context examples. hopwfully we can self-teach?
|
||||
// let similarityResults = await rankExampleTriggerEvents(state.disinformationTitle)
|
||||
let similarityResults = await rankExampleTriggerEvents(state.disinformationTitle)
|
||||
|
||||
// let messages : BaseMessage[] = similarityResults.map((item) => {
|
||||
// return new AIMessage(`- Event: ${item.rawtext} \n\n - Claims and given scores: ${item.cleantext}`)
|
||||
// })
|
||||
let messages : BaseMessage[] = similarityResults.map((item) => {
|
||||
return new AIMessage(`- Event: ${item.rawtext} \n\n - Claims and given scores: ${item.cleantext}`)
|
||||
})
|
||||
|
||||
return { disinformationTitle: state.disinformationTitle, normalizedClaim: nc };
|
||||
return { messages: messages, disinformationTitle: state.disinformationTitle, normalizedClaim: nc };
|
||||
};
|
||||
@@ -14,7 +14,9 @@ Include a concise but specific search query that can be looked up on a search en
|
||||
|
||||
Include a url to a source for your trigger event (not a web search, a specific url from a reputuable source). Do not use OAI cite, include url as text in response.
|
||||
|
||||
Use a JSON format with each entry containing "Event,ReasoningWhyRelevant,SearchQuery,Url".
|
||||
Include the date that the event happened ("March 2022" for exmaple)
|
||||
|
||||
Use a JSON format with each entry containing "Event,ReasoningWhyRelevant,SearchQuery,Url,Date".
|
||||
|
||||
Multiple tool invocations should be requested at once, if applicable.
|
||||
Use your abilities to look between the lines and produce some insightful analysis, thinking both short and long term.
|
||||
|
||||
@@ -9,6 +9,7 @@ export const ProposedTriggerEvent = z.object({
|
||||
ReasoningWhyRelevant: z.string(),
|
||||
SearchQuery: z.string(),
|
||||
Url: z.url(),
|
||||
Date: z.string(),
|
||||
context: z.string().optional(),
|
||||
score: z.number().optional()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user