ragflow-typescript-sdk
v1.0.0
Published
TypeScript SDK for RAGFlow API
Downloads
8
Maintainers
Readme
RAGFlow SDK
A TypeScript SDK for RAGFlow API - providing easy access to RAGFlow's retrieval-augmented generation capabilities.
Features
- 🚀 Full TypeScript support with type definitions
- 📦 Modern ES modules and CommonJS compatibility
- 🔧 Easy-to-use API client
- 📖 Comprehensive documentation
Installation
npm install ragflow
# or
yarn add ragflow
# or
bun add ragflowQuick Start
import { RAGFlow } from 'ragflow';
// Initialize the client
const client = new RAGFlow({
apiKey: 'your-api-key',
baseURL: 'https://your-ragflow-instance.com'
});
// Example usage
async function example() {
try {
// Your RAGFlow API calls here
console.log('RAGFlow SDK is ready!');
} catch (error) {
console.error('Error:', error);
}
}Development
To install dependencies:
bun installTo build the project:
bun run buildTo run in development mode:
bun run devTo run the built version:
bun run startScripts
build- Compile TypeScript to JavaScriptstart- Run the compiled JavaScriptdev- Run in development mode with ts-nodelint- Run ESLinttest- Run tests (placeholder)
License
MIT © Cuong Pham
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
