Skip to content

Commit

Permalink
document chunk added
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Mar 25, 2024
1 parent 79f411d commit fb02066
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion app/Models/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasMany;

/**
Expand Down
2 changes: 1 addition & 1 deletion app/Models/DocumentChunk.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function document()
return $this->belongsTo(Document::class);
}

/**
/**
* The "booted" method of the model.
*
* @return void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public function up(): void
Schema::create('document_chunks', function (Blueprint $table) {
$table->id();
$table->foreignIdFor(Document::class);
$table->string('guid');
$table->string('guid');
$table->string('sort_order')->default(1);
$table->longText('content')->nullable();
$table->longText('content')->nullable();
$table->vector('embedding', 2048)->nullable();
$table->longText('original_content')->nullable();
$table->timestamps();
Expand Down
2 changes: 0 additions & 2 deletions tests/Feature/Models/DocumentChunkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
namespace Tests\Feature\Models;

use App\Models\DocumentChunk;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Tests\TestCase;

class DocumentChunkTest extends TestCase
Expand Down

0 comments on commit fb02066

Please sign in to comment.