Skip to content

Commit 6005410

Browse files
committed
rename rag to blog
- rename add to blog to clarify the implementation
1 parent d0afd83 commit 6005410

File tree

9 files changed

+16
-16
lines changed

9 files changed

+16
-16
lines changed

src/Rag/Chat/Rag.php src/Blog/Chat/Blog.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace App\Rag\Chat;
5+
namespace App\Blog\Chat;
66

77
use PhpLlm\LlmChain\ChainInterface;
88
use PhpLlm\LlmChain\Model\Message\Message;
@@ -11,7 +11,7 @@
1111
use Symfony\Component\DependencyInjection\Attribute\Autowire;
1212
use Symfony\Component\HttpFoundation\RequestStack;
1313

14-
final class Rag
14+
final class Blog
1515
{
1616
private const SESSION_KEY = 'rag-chat';
1717

src/Command/BlogEmbedCommand.php src/Blog/Command/BlogEmbedCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
declare(strict_types=1);
44

5-
namespace App\Command;
5+
namespace App\Blog\Command;
66

7-
use App\Rag\Blog\Embedder;
7+
use App\Blog\Embedder;
88
use Symfony\Component\Console\Attribute\AsCommand;
99
use Symfony\Component\Console\Command\Command;
1010
use Symfony\Component\Console\Input\InputInterface;

src/Rag/Blog/Embedder.php src/Blog/Embedder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace App\Rag\Blog;
5+
namespace App\Blog;
66

77
use PhpLlm\LlmChain\Document\Metadata;
88
use PhpLlm\LlmChain\Document\TextDocument;

src/Rag/Blog/Loader.php src/Blog/Loader.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace App\Rag\Blog;
5+
namespace App\Blog;
66

77
use Symfony\Component\DomCrawler\Crawler;
88
use Symfony\Component\Uid\Uuid;

src/Rag/Blog/Post.php src/Blog/Post.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace App\Rag\Blog;
5+
namespace App\Blog;
66

77
use Symfony\Component\Uid\Uuid;
88

src/Rag/Twig/RagComponent.php src/Blog/Twig/BlogComponent.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22

33
declare(strict_types=1);
44

5-
namespace App\Rag\Twig;
5+
namespace App\Blog\Twig;
66

7-
use App\Rag\Chat\Rag;
7+
use App\Blog\Chat\Blog;
88
use PhpLlm\LlmChain\Model\Message\MessageBag;
99
use Symfony\UX\LiveComponent\Attribute\AsLiveComponent;
1010
use Symfony\UX\LiveComponent\Attribute\LiveAction;
1111
use Symfony\UX\LiveComponent\Attribute\LiveArg;
1212
use Symfony\UX\LiveComponent\DefaultActionTrait;
1313

1414
#[AsLiveComponent('rag')]
15-
final class RagComponent
15+
final class BlogComponent
1616
{
1717
use DefaultActionTrait;
1818

1919
public function __construct(
20-
private readonly Rag $chat,
20+
private readonly Blog $chat,
2121
) {
2222
}
2323

tests/Rag/Blog/LoaderTest.php tests/Blog/LoaderTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
declare(strict_types=1);
44

5-
namespace App\Tests\Rag\Blog;
5+
namespace App\Tests\Blog;
66

7-
use App\Rag\Blog\Loader;
8-
use App\Rag\Blog\Post;
7+
use App\Blog\Loader;
8+
use App\Blog\Post;
99
use PHPUnit\Framework\Attributes\CoversClass;
1010
use PHPUnit\Framework\Attributes\UsesClass;
1111
use PHPUnit\Framework\TestCase;

tests/Rag/Blog/PostTest.php tests/Blog/PostTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
declare(strict_types=1);
44

5-
namespace App\Tests\Rag\Blog;
5+
namespace App\Tests\Blog;
66

7-
use App\Rag\Blog\Post;
7+
use App\Blog\Post;
88
use PHPUnit\Framework\Attributes\CoversClass;
99
use PHPUnit\Framework\TestCase;
1010
use Symfony\Component\Uid\Uuid;
File renamed without changes.

0 commit comments

Comments
 (0)