feat: add curation functionality with OpenAI integration
gcharanteja
3c351e6
- Implemented `curateText` function in `curation.js` to extract structured knowledge from raw text using OpenAI.
- Added JSON parsing and fallback mechanism for curation results.
- Created markdown file writing logic with importance handling and fact merging.
- Introduced `askOpenAI` function in `llm.js` to interact with OpenAI's API for knowledge extraction.
- Updated server to handle POST requests for curation at the `/curate` endpoint.
- Refactored `server.js` and `vector.js` to use ES module syntax.
- Added necessary dependencies in `package.json` and `package-lock.json`.
Add configuration management and enhance server functionality with new vector operations