Add StoryAI core functionality with LARP-centric services and AI-driv…#99
Draft
Add StoryAI core functionality with LARP-centric services and AI-driv…#99
Conversation
…en features: - Introduced `AIAssistantController` with endpoints for AI queries, suggestions, and analyses (query, search, story arc suggestions, relationship suggestions, connections, and plot consistency). - Added DTO classes (`AIQueryResult`, `ChatMessage`) to structure AI interactions and results. - Implemented `EmbeddingService` and `ContextBuilder` to handle vector embeddings, chunked lore contexts, and AI-ready prompts. - Created `EmbeddingProviderInterface` for abstraction and compatibility with embedding engines. - Added `IndexLoreDocumentHandler` and `IndexLoreDocumentMessage` for async lore document indexing. - Registered PSR-17 factories via `http_discovery.yaml` for API operations. - Enhanced scalability via chunked lore document processing and batch embedding generation.
…re` implementations, setup documentation, and supporting DTO (`VectorDocument`) for AI-powered story management.
…d update `.serena/project.yml` with refined configurations.
…rules, and backend support: - Built AI Assistant page with chat interface using Stimulus controller and custom styles. - Added `AIAssistantPageController` for rendering assistant chat view. - Implemented `AIAssistantVoter` for access control based on LARP participation and roles. - Created `ai_assistant_controller.js` for managing chat interactions, message history, and API communication. - Styled AI Assistant components (`_ai_assistant.scss`) for user and assistant messages, typing indicators, and error handling. - Extended LARP-related templates and security configurations to integrate AI Assistant page. - Added entities and logic for lore document indexing, embedding integration, and AI-driven functionalities.
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.
…en features:
AIAssistantControllerwith endpoints for AI queries, suggestions, and analyses (query, search, story arc suggestions, relationship suggestions, connections, and plot consistency).AIQueryResult,ChatMessage) to structure AI interactions and results.EmbeddingServiceandContextBuilderto handle vector embeddings, chunked lore contexts, and AI-ready prompts.EmbeddingProviderInterfacefor abstraction and compatibility with embedding engines.IndexLoreDocumentHandlerandIndexLoreDocumentMessagefor async lore document indexing.http_discovery.yamlfor API operations.