File tree Expand file tree Collapse file tree 3 files changed +1
-20
lines changed Expand file tree Collapse file tree 3 files changed +1
-20
lines changed Original file line number Diff line number Diff line change 61
61
"scripts-descriptions" : {
62
62
"analyse" : " Run PHPStan static analysis against your application." ,
63
63
"format" : " Run PHP CS Fixer against your application." ,
64
+ "refactor" : " Run rector for code refactoring." ,
64
65
"test" : " Run PHPUnit to test"
65
66
},
66
67
"autoload" : {
Original file line number Diff line number Diff line change @@ -15,11 +15,4 @@ interface RetrievalInterface
15
15
* @return Document[]
16
16
*/
17
17
public function retrieve (Message $ query ): array ;
18
-
19
- /**
20
- * Set configuration parameters for the retrieval strategy.
21
- *
22
- * @param array<string, mixed> $config
23
- */
24
- public function setConfiguration (array $ config ): RetrievalInterface ;
25
18
}
Original file line number Diff line number Diff line change 10
10
11
11
class SimilarityRetrieval implements RetrievalInterface
12
12
{
13
- /**
14
- * @param array<string, mixed> $config
15
- */
16
13
public function __construct (
17
14
private readonly VectorStoreInterface $ vectorStore ,
18
15
private readonly EmbeddingsProviderInterface $ embeddingProvider ,
19
- private array $ config = []
20
16
) {
21
17
}
22
18
@@ -26,13 +22,4 @@ public function retrieve(Message $query): array
26
22
$ this ->embeddingProvider ->embedText ($ query ->getContent ())
27
23
);
28
24
}
29
-
30
- /**
31
- * @param array<string, mixed> $config
32
- */
33
- public function setConfiguration (array $ config ): RetrievalInterface
34
- {
35
- $ this ->config = \array_merge ($ this ->config , $ config );
36
- return $ this ;
37
- }
38
25
}
You can’t perform that action at this time.
0 commit comments