Open
Conversation
Implements a complete AI backend with the following features: - OpenAI-compatible API integration for embeddings and completions - RAG-based semantic search using pgvector - Background job processing for embedding generation - AI controller with streaming support for /api/ai/ask and /api/ai/generate - Status endpoint for monitoring embedding coverage and queue stats Technical implementation: - New AI module in core/ai with controller, service, and DTOs - Queue processor for async embedding generation - Database migration for page_embeddings table with vector support - Proper TypeScript interfaces for responses and configuration - Environment service integration for configuration management The implementation follows forkmost conventions with pragmatic TypeScript usage and extensive logging for observability.
Owner
|
FYI will take a bit due to the size and holiday and also because I need to test it, which will be a bit of work |
Owner
|
Hey, sorry for the long delay. I will likely review this in mid February. Sorry for this message. This will also be the last PR I will (hopefully) merge. After that, I will merge the changes from upstream and then archive it so people can fork it, if someone plans to continue it. I already looked a bit trough the code and saw some things like Main transparency: Didn't had the motivation to setup a local llm to test this yet. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Experimental AI integration for better semantic search and AI agent.
Your feedback is very welcome!