Skip to content

Basic OSS AI integration#117

Open
restyler wants to merge 3 commits intoVito0912:personalfrom
restyler:feat/ai-core
Open

Basic OSS AI integration#117
restyler wants to merge 3 commits intoVito0912:personalfrom
restyler:feat/ai-core

Conversation

@restyler
Copy link

Experimental AI integration for better semantic search and AI agent.

Settings AI response

Your feedback is very welcome!

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.
@Vito0912
Copy link
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

@Vito0912
Copy link
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 dangerouslySetInnerHTML which I don't like, but I will create a proper review later mid/end February.

Main transparency: Didn't had the motivation to setup a local llm to test this yet.

@Vito0912 Vito0912 changed the base branch from main to personal February 18, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants