
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@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<InfoKnowledgeResponse>({
endpoint: '/api/knowledge/collection/info',
method: 'POST',
body: {
name: 'reai_test'
}
});
// 文档API示例
const docList = await ReAIVolcKnowledge.doRequest<ListDocumentResponse>({
endpoint: '/api/knowledge/doc/list',
method: 'POST',
body: {
collection_name:'reai_test',
project: '',
offset: 0,
limit: 100,
return_token_usage: true
}
});
// 切片API示例
const updatedSlice = await ReAIVolcKnowledge.doRequest<any>({
endpoint: '/api/knowledge/point/update',
method: 'POST',
body: {
collection_name: 'reai_test',
project: '',
point_id: 'reai_123456-0',
content: 'test content'
}
});
// 搜索API示例
const searchResults = await ReAIVolcKnowledge.doRequest<SearchKnowledgeResponse>({
endpoint: '/api/knowledge/collection/search_knowledge',
method: 'POST',
body: {
name: 'reai_test',
project: '',
query: '问题'
}
});
# 安装依赖
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.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.