init project

This commit is contained in:
2026-05-10 13:21:24 +03:30
parent 5f210c6c73
commit dc36701c9d
26 changed files with 2149 additions and 69 deletions

View File

@@ -0,0 +1,37 @@
<?php
namespace App\Models;
use Database\Factories\EmbeddingEntryFactory;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
#[Fillable([
'source_text',
'content_hash',
'embedding',
'embedding_dimensions',
'provider',
'model',
'tokens',
])]
class EmbeddingEntry extends Model
{
/** @use HasFactory<EmbeddingEntryFactory> */
use HasFactory;
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
*/
protected function casts(): array
{
return [
'embedding' => 'array',
'embedding_dimensions' => 'integer',
'tokens' => 'integer',
];
}
}