Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adcontextprotocol/adcp
/ formatConversation
Function
formatConversation
implementations/browser/embedding-bench.mjs:101–106 ·
view source on GitHub ↗
(messages)
Source
from the content-addressed store, hash-verified
99
};
100
101
function
formatConversation(messages) {
102
return
messages
103
.filter(m => m.role ===
'user'
)
104
.map(m => m.content)
105
.join(
' | '
);
106
}
107
108
function
cosineSim(a, b) {
109
let
dot = 0, normA = 0, normB = 0;
Callers
1
benchmarkModel
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected