1 Commits

Author SHA1 Message Date
William Jeynes 3286df6450 remove context examples 2026-03-25 22:32:41 +00:00
3 changed files with 6 additions and 9 deletions
+5 -5
View File
@@ -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 { messages: messages, disinformationTitle: state.disinformationTitle, normalizedClaim: nc };
return { disinformationTitle: state.disinformationTitle, normalizedClaim: nc };
};
+1 -3
View File
@@ -14,9 +14,7 @@ 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.
Include the date that the event happened ("March 2022" for exmaple)
Use a JSON format with each entry containing "Event,ReasoningWhyRelevant,SearchQuery,Url,Date".
Use a JSON format with each entry containing "Event,ReasoningWhyRelevant,SearchQuery,Url".
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.
-1
View File
@@ -9,7 +9,6 @@ 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()
})