Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Chat/Rag.php → src/Blog/Chat/Blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace App\Chat;
namespace App\Blog\Chat;

use PhpLlm\LlmChain\ChainInterface;
use PhpLlm\LlmChain\Model\Message\Message;
Expand All @@ -11,7 +11,7 @@
use Symfony\Component\DependencyInjection\Attribute\Autowire;
use Symfony\Component\HttpFoundation\RequestStack;

final class Rag
final class Blog
{
private const SESSION_KEY = 'rag-chat';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace App\Command;
namespace App\Blog\Command;

use App\Blog\Embedder;
use Symfony\Component\Console\Attribute\AsCommand;
Expand Down
8 changes: 4 additions & 4 deletions src/Twig/RagComponent.php → src/Blog/Twig/BlogComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@

declare(strict_types=1);

namespace App\Twig;
namespace App\Blog\Twig;

use App\Chat\Rag;
use App\Blog\Chat\Blog;
use PhpLlm\LlmChain\Model\Message\MessageBag;
use Symfony\UX\LiveComponent\Attribute\AsLiveComponent;
use Symfony\UX\LiveComponent\Attribute\LiveAction;
use Symfony\UX\LiveComponent\Attribute\LiveArg;
use Symfony\UX\LiveComponent\DefaultActionTrait;

#[AsLiveComponent('rag')]
final class RagComponent
final class BlogComponent
{
use DefaultActionTrait;

public function __construct(
private readonly Rag $chat,
private readonly Blog $chat,
) {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace App\Chat;
namespace App\Wikipedia\Chat;

use PhpLlm\LlmChain\ChainInterface;
use PhpLlm\LlmChain\Model\Message\Message;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace App\Twig;
namespace App\Wikipedia\Twig;

use App\Chat\Wikipedia;
use App\Wikipedia\Chat\Wikipedia;
use PhpLlm\LlmChain\Model\Message\MessageBag;
use Symfony\UX\LiveComponent\Attribute\AsLiveComponent;
use Symfony\UX\LiveComponent\Attribute\LiveAction;
Expand Down
2 changes: 1 addition & 1 deletion src/Chat/YouTube.php → src/YouTube/Chat/YouTube.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace App\Chat;
namespace App\YouTube\Chat;

use App\YouTube\TranscriptFetcher;
use PhpLlm\LlmChain\ChainInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace App\Twig;
namespace App\YouTube\Twig;

use App\Chat\YouTube;
use App\YouTube\Chat\YouTube;
use PhpLlm\LlmChain\Model\Message\MessageBag;
use Psr\Log\LoggerInterface;
use Symfony\UX\LiveComponent\Attribute\AsLiveComponent;
Expand Down
Loading