Skip to content

Commit

Permalink
TASK: Use .json instead of .jsonl as storage format for the source of…
Browse files Browse the repository at this point in the history
… knowledge
  • Loading branch information
mficzel committed Apr 10, 2024
1 parent 04a11eb commit 94d28e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Classes/Domain/Knowledge/JsonlRecordCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function count(): int

public function __toString(): string
{
return implode("\n", array_map(
return '[' . "\n" . implode("\n", array_map(
fn (JsonlRecord $record): string => \str_replace(
PHP_EOL,
"\\\\n",
Expand All @@ -45,6 +45,6 @@ public function __toString(): string
)
),
$this->items
));
)) . "\n" . ']';
}
}
2 changes: 1 addition & 1 deletion Classes/Domain/Knowledge/KnowledgeFilename.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#[Flow\Proxy(false)]
final class KnowledgeFilename
{
private const FILE_ENDING = '.jsonl';
private const FILE_ENDING = '.json';

public function __construct(
public readonly KnowledgeSourceDiscriminator $knowledgeSourceDiscriminator,
Expand Down

0 comments on commit 94d28e6

Please sign in to comment.