remove context examples
This commit is contained in:
@@ -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
|
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?
|
//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) => {
|
// let messages : BaseMessage[] = similarityResults.map((item) => {
|
||||||
return new AIMessage(`- Event: ${item.rawtext} \n\n - Claims and given scores: ${item.cleantext}`)
|
// 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 };
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user