Update
This commit is contained in:
38
app/Models/KeywordEmbedding.php
Normal file
38
app/Models/KeywordEmbedding.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
*/
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Pgvector\Laravel\Vector;
|
||||
|
||||
/**
|
||||
* Class KeywordEmbedding
|
||||
*
|
||||
* @property int $id
|
||||
* @property string $keyword
|
||||
* @property USER-DEFINED $embedding
|
||||
* @property string|null $tag
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
*
|
||||
* @package App\Models
|
||||
*/
|
||||
class KeywordEmbedding extends Model
|
||||
{
|
||||
protected $table = 'keyword_embeddings';
|
||||
|
||||
protected $casts = [
|
||||
'embedding' => Vector::class,
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'keyword',
|
||||
'embedding',
|
||||
'tag'
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user