Skip to content

Commit

Permalink
going to start ollama
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Apr 5, 2024
1 parent cfc8132 commit e36b4b7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
8 changes: 5 additions & 3 deletions app/Http/Controllers/CollectionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,17 @@ public function filesUpload(Collection $collection)
return back();
}

public function resetCollectionDocument(Collection $collection, Document $document) {
public function resetCollectionDocument(Collection $collection, Document $document)
{
$document->document_chunks()->delete();
$document->status = StatusEnum::Running;
$document->document_chunk_count = 0;
$document->status = StatusEnum::Running;
$document->document_chunk_count = 0;
$document->update();

ProcessFileJob::dispatch($document);

request()->session()->flash('flash.banner', 'Document reset process running!');

return back();
}
}
1 change: 0 additions & 1 deletion app/LlmDriver/OllamaClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public function functionPromptChat(array $messages, array $only = []): array

$functions = [];


/**
* @TODO
* make this a dto
Expand Down
2 changes: 1 addition & 1 deletion app/LlmDriver/Orchestrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function handle(array $messagesArray, Chat $chat): ?string
ChatUiUpdateEvent::dispatch(
$chat->chatable,
$chat,
"Functions and Agents have completed their tasks, results will appear shortly");
'Functions and Agents have completed their tasks, results will appear shortly');

$this->response = $results->content;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ public function test_reindex_document(): void
Queue::assertPushed(ProcessFileJob::class, 1);
}


public function test_update(): void
{
$user = $this->createUserWithCurrentTeam();
Expand Down

0 comments on commit e36b4b7

Please sign in to comment.