
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@re-ai/volc-knowledge
Advanced tools
火山引擎知识库接口接入SDK
npm install @re-ai/volc-knowledge
import { ReAIVolcKnowledge } from '@re-ai/volc-knowledge';
// 知识库API示例
const knowledgeInfo = await ReAIVolcKnowledge.doRequest({
endpoint: '/knowledge/info',
method: 'POST',
body: {
name: 'your-knowledge-name'
}
});
// 文档API示例
const docList = await ReAIVolcKnowledge.doRequest({
endpoint: '/document/list',
method: 'POST',
body: {
knowledgeId: 'knowledge-id',
page: 1,
pageSize: 10
}
});
// 切片API示例
const updatedSlice = await ReAIVolcKnowledge.doRequest({
endpoint: '/slice/update',
method: 'POST',
body: {
sliceId: 'slice-id',
content: 'updated content'
}
});
// 重排API示例
const rerankedResults = await ReAIVolcKnowledge.doRequest({
endpoint: '/rerank',
method: 'POST',
body: {
query: 'search query',
documents: [
{ content: 'document 1 content' },
{ content: 'document 2 content' }
]
}
});
# 安装依赖
npm install
# 构建
npm run build
# 运行测试
npm test
欢迎提交Pull Request。请确保遵循以下规范:
MIT
FAQs
火山引擎知识库接口接入SDK
We found that @re-ai/volc-knowledge demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.