genkitx-weaviate
    Preparing search index...

    Function weaviateIndexerRef

    • Creates a reference to a Weaviate indexer.

      Parameters

      • params: { collectionName: string; displayName?: string }

        Configuration for the indexer reference

        • collectionName: string

          Name of the Weaviate collection

        • OptionaldisplayName?: string

          Optional display name for the indexer

      Returns IndexerReference<
          ZodOptional<
              ZodObject<
                  {
                      collectionConfig: ZodOptional<
                          ZodObject<
                              {
                                  description: ZodOptional<ZodString>;
                                  properties: ZodOptional<
                                      ZodArray<
                                          ZodObject<
                                              { dataType: ...; description: ...; name: ... },
                                              "strip",
                                              ZodTypeAny,
                                              { dataType: ...; description?: ...; name: ... },
                                              { dataType: ...; description?: ...; name: ... },
                                          >,
                                          "many",
                                      >,
                                  >;
                              },
                              "strip",
                              ZodTypeAny,
                              {
                                  description?: string;
                                  properties?: {
                                      dataType: string;
                                      description?: (...)
                                      | (...);
                                      name: string;
                                  }[];
                              },
                              {
                                  description?: string;
                                  properties?: {
                                      dataType: string;
                                      description?: (...)
                                      | (...);
                                      name: string;
                                  }[];
                              },
                          >,
                      >;
                      createCollectionIfMissing: ZodDefault<ZodOptional<ZodBoolean>>;
                  },
                  "strip",
                  ZodTypeAny,
                  {
                      collectionConfig?: {
                          description?: string;
                          properties?: { dataType: string; description?: string; name: string }[];
                      };
                      createCollectionIfMissing: boolean;
                  },
                  {
                      collectionConfig?: {
                          description?: string;
                          properties?: { dataType: string; description?: string; name: string }[];
                      };
                      createCollectionIfMissing?: boolean;
                  },
              >,
          >,
      >

      An indexer reference object

      const indexer = weaviateIndexerRef({
      collectionName: 'Documents'
      });