@n2flowjs/nbase
Version:
Neural Vector Database for efficient similarity search
88 lines (69 loc) • 1.4 kB
Markdown
- Node.js >= 16.0.0
- NPM >= 7.0.0
- Memory: 512MB minimum, 2GB+ recommended
- Storage: 100MB minimum for installation
```bash
npm install @n2flowjs/nbase
```
```bash
yarn add @n2flowjs/nbase
```
```bash
git clone https://github.com/n2flowjs/nbase.git
cd nbase
npm install
npm run build
```
```typescript
import { Database } from '@n2flowjs/nbase';
async function testInstallation() {
const db = new Database({
vectorSize: 128
});
await db.addVector('test', new Float32Array(128));
console.log('Installation successful!');
}
```
```bash
export NODE_OPTIONS=--max_old_space_size=4096
```
```bash
rm -rf node_modules
npm cache clean --force
npm install
```
```json
{
"NODE_ENV": "development",
"NBASE_DB_PATH": "./data",
"NBASE_LOG_LEVEL": "debug"
}
```
```json
{
"NODE_ENV": "production",
"NBASE_DB_PATH": "/var/lib/nbase",
"NBASE_LOG_LEVEL": "info",
"NBASE_MONITOR_ENABLED": "true"
}
```
```
1. Check out the [Quick Start Guide](getting-started.md)
2. Review [Best Practices](best-practices.md)
3. Explore [API Documentation](api-reference.md)