Lines Matching refs:collectionName
254 * @param string $collectionName The name of the collection to get the document from
260 … public function getDocument($collectionName, $documentId, $include = ["metadatas", "documents"]) { argument
262 if (empty($collectionName)) {
263 $collectionName = 'documents';
266 $collection = $this->getCollection($collectionName);
268 throw new \Exception("Collection ID not found for '{$collectionName}'");
286 * @param string $collectionName The name of the collection to add documents to
294 …public function addDocuments($collectionName, $documents, $ids, $metadatas = null, $embeddings = n… argument
296 if (empty($collectionName)) {
297 $collectionName = 'documents';
300 $collection = $this->getCollection($collectionName);
302 throw new \Exception("Collection ID not found for '{$collectionName}'");
388 * @param string $collectionName The name of the collection to query
395 public function queryCollection($collectionName, $queryTexts, $nResults = 5, $where = null) { argument
397 if (empty($collectionName)) {
398 $collectionName = 'documents';
401 $collection = $this->getCollection($collectionName);
403 throw new \Exception("Collection ID not found for '{$collectionName}'");
533 * @param string $collectionName The name of the collection to check/create
536 public function ensureCollectionExists($collectionName) { argument
538 $collection = $this->getCollection($collectionName);
539 return "Collection '$collectionName' already exists.";
542 $created = $this->createCollection($collectionName);
543 return "Collection '$collectionName' created.";
569 * @param string $collectionName The name of the collection to use
573 public function processSingleFile($filePath, $collectionName, $collectionChecked = false) { argument
580 $collectionStatus = $this->ensureCollectionExists($collectionName);
583 $collection = $this->getCollection($collectionName);
587 'message' => "Collection ID not found for '{$collectionName}'"
599 … 'message' => "Document '$id' is up to date in collection '$collectionName'. Skipping..."
750 …$result = $this->addDocuments($collectionName, $chunkContents, $chunkIds, $chunkMetadatas, $chunkE…
757 'collection' => $collectionName