Prerequisites

Learn how to collect the information you need to deploy the RAG Query Milvus [Technical Preview] ReadyFlow, and meet other prerequisites.

For your data ingest source

  • You have a query in the form of a question that is relevant to the data in your Milvus collection.

For Cloudera DataFlow

  • You have enabled Cloudera DataFlow for an environment.

    For information on how to enable Cloudera DataFlow for an environment, see Enabling Cloudera DataFlow for an Environment.

  • You have created a Machine User to use as the Cloudera Workload User.

  • You have given the Cloudera Workload User the EnvironmentUser role.
    1. From the Management Console, go to the environment for which Cloudera DataFlow is enabled.
    2. From the Actions drop down, click Manage Access.
    3. Identify the user you want to use as a Workload User.
    4. Give that user EnvironmentUser role.
  • You have synchronized your user to the Cloudera Public Cloud environment that you enabled for Cloudera DataFlow.

    For information on how to synchronize your user to FreeIPA, see Performing User Sync.

  • You have granted your Cloudera user the DFCatalogAdmin and DFFlowAdmin roles to enable your user to add the ReadyFlow to the Catalog and deploy the flow definition.
    1. Give a user permission to add the ReadyFlow to the Catalog.
      1. From the Management Console, click User Management.
      2. Enter the name of the user or group you wish to authorize in the Search field.
      3. Select the user or group from the list that displays.
      4. Click Roles > Update Roles.
      5. From Update Roles, select DFCatalogAdmin and click Update.
    2. Give your user or group permission to deploy flow definitions.
      1. From the Management Console, click Environments to display the Environment List page.
      2. Select the environment to which you want your user or group to deploy flow definitions.
      3. Click Actions > Manage Access to display the Environment Access page.
      4. Enter the name of your user or group you wish to authorize in the Search field.
      5. Select your user or group and click Update Roles.
      6. Select DFFlowAdmin from the list of roles.
      7. Click Update Roles.
    3. Give your user or group access to the Project where the ReadyFlow will be deployed.
      1. Go to DataFlow > Projects.
      2. Select the project where you want to manage access rights and click More > Manage Access.
    4. Start typing the name of the user or group you want to add and select them from the list.
    5. Select the Resource Roles you want to grant.
    6. Click Update Roles.
    7. Click Synchronize Users.

For your data ingest target

  • You have the OpenAI API key.
  • Your Milvus version is 2.4.4.
  • You have the Milvus access token.
  • You have the name of the destination Milvus collection.
  • You have the URI of the destination Milvus instance.
  • Your Milvus collection schema has the following field names and field types:
    • id (INT64) You must enable Auto ID on this field.
    • text_embedding (FLOAT_VECTOR)
    • source (VARCHAR)
    • section (VARCHAR)
    • text (VARCHAR)
  • The ‘text_embedding’ field in your destination Milvus collection is configured with the same dimensions as the default HuggingFace 'all-MiniLM-L12-v2' model (384).
  • The source, section and text VARCHAR fields have been configured with Max Length values large enough to accommodate their respective values in your PDFs.
  • Your Milvus collection has data loaded that is relevant to your prompt query. For example, PDFs related to the query have been loaded to Milvus using the “S3 to Milvus” or “ADLS to Milvus” ReadyFlows.