vania-janet/multiturn-rag-retrieval-data huggingface dataset:
How do I know whether I have Discovery v1 or v2? 

If you're using Discovery on IBM Cloud Pak® for Data, then you're using Discovery v2.

If you have a service instance that is managed by IBM Cloud, then check what you see when you launch the product. When you open the product user interface in v2, the following page is displayed:

Zoom

![Shows the main My Projects page with a single Sample Project tile.](https://cloud.ibm.com/docs-content/v1/content/f16b1f78a92498247223b337bd9303c2758b9ba8/discovery-data/images/gs-home-page.png)

Figure 2. Discovery v2 home page





 Can I integrate Watson Discovery with Watson Assistant? 

You can integrate Discovery and Watson Assistant to make information that is stored in external data sources available to a virtual assistant. Create a Conversational Search project in Discovery, and then add the data sources that you want to make available to it. Next, create a search integration in Watson Assistant, and connect it to your Discovery project and collection.





 Can I increase the collection limit for a project? 

If you want to add more than 5 collections to your project and you have a Premium plan, you can request an increase to the collection limit by opening a support request. For more information, see [Getting help](https://cloud.ibm.com/docs/discovery-data?topic=discovery-data-get-help).





 Can I find related documents after I add them to a collection 

If you want to retain information about the relationship of two or more documents to one another, you can do so. For example, if 3 documents are uploaded from the same folder and their placement in the folder is significant to their meaning, you might want to retain the parent folder information.

When you upload a document, no such information about its relationships to other documents is stored by default. To add the information, you can use the API to add the documents. When you add documents by using the API, you can specify metadata values.
val appConfiguration = AppConfiguration.getInstance()

appConfiguration.init( application,
"region",
"guid",
"apikey")

//To start the configuration fetching operation, set the collectionId and environmentId in the following way.
appConfiguration.setContext("collectionId","environmentId")

Where:



* region - Region name where the service instance is created. Use AppConfiguration.REGION_US_SOUTH for Dallas, AppConfiguration.REGION_US_EAST for Washington DC, AppConfiguration.REGION_EU_GB for London, and AppConfiguration.REGION_AU_SYD for Sydney.
* guid - GUID of the App Configuration service. Get it from the service credentials section of the dashboard.
* apikey - ApiKey of the App Configuration service. Get it from the service credentials section of the dashboard.
* collectionId - ID of the collection created in App Configuration service instance under the Collections section.
* environmentId - Id of the environment created in App Configuration service instance under the Environments section.



4. Set listener for feature or property data changes

appConfiguration.registerConfigurationUpdateListener(object : ConfigurationUpdateListener {

override fun onConfigurationUpdate() {
// ADD YOUR CODE
}
})





 Examples for using property and feature-related APIs for Android app that is written in Kotlin 



* Get single feature

val feature: Feature? = appConfiguration.getFeature("featureId")
* Get all features

val features: HashMap<String, Feature>? = appConfiguration.getFeatures();
* Feature evaluation

You can use the feature.getCurrentValue() method to evaluate the value of the feature flag. Pass a unique entityId as the parameter to perform the feature flag evaluation. If the feature flag is configured with segments in the App Configuration service, you can set the attributes values as a JSONObject.
App Configuration React client SDK 

App Configuration service provides SDK to integrate with your React applications.



 Integrating client SDK for React 

App Configuration React client SDK can be used with all the major browsers. You can evaluate the values of your feature flag and property by integrating the App Configuration SDK.



1. Install the SDK.

npm install ibm-appconfiguration-react-client-sdk@latest
2. Initialize the sdk to connect with your App Configuration service instance. Wrapping your app component with AppConfigProvider lets you access features & properties from any level of your component hierarchy.

import { withAppConfigProvider } from 'ibm-appconfiguration-react-client-sdk';

(async () => {
const AppConfigProvider = await withAppConfigProvider({
region: 'us-south',
guid: '<guid>',
apikey: '<apikey>',
collectionId: 'airlines-webapp',
environmentId: 'dev'
})

ReactDOM.render(
<AppConfigProvider>
<YourApp />
</AppConfigProvider>,
document.getElementById('root')
);
})();
Show more

Where:



* region: Region where the service instance is created. Use us-south for Dallas, us-east for Washington DC, eu-gb for London, and au-syd for Sydney.
* guid: Instance ID of the App Configuration service. Get it from the service credentials section of the App Configuration service dashboard.
* apikey: API key of the App Configuration service. Get it from the service credentials section of the App Configuration service dashboard.
* collectionId: ID of the collection created in App Configuration service instance under the Collections section.
* environmentId: ID of the environment created in App Configuration service instance under the Environments section.





Ensure to create the service credentials of the role Client SDK for using with the React client SDK.
Refer to the [Troubleshooting](https://cloud.ibm.com/docs/CDN?topic=CDN-troubleshoot-cdn-working) or [Getting help and support](https://cloud.ibm.com/docs/CDN?topic=CDN-gettinghelpgettinghelp), or open a case in the [IBM Cloud console](https://cloud.ibm.com/).





 Where do I find the CNAME for my CDN if I didn't provide one? 

Click your CDN to access the Overview page in the portal. In the upper right corner, you can see a Details section with the CName information.





 My single file purge request for a given file path is in progress. Can I submit a new request for the same file path? 

No. There can be only one active purge request for a given file path at a time.





 Is Internet Protocol version 6 (IPv6) supported by the IBM Cloud Content Delivery Network service? How does it work? 

IPv6 (or dual stack support) is supported by Akamai's Edge servers. It is designed to help customers with an IPv4-only origin to accept connections from IPv6 clients, convert from IPv6 to IPv4 at the Edge, and go forward to the origin with IPv4.

Creating an IBM Cloud CDN using an IPv6 address as the origin server address is not supported.





 Are there any restrictions on what HTTP and HTTPS port numbers are allowed for Akamai? 

Yes. For the Akamai vendor, only the following port numbers are allowed: 72, 80-89, 443, 488, 591, 777, 1080, 1088, 1111, 1443, 2080, 7001, 7070, 7612, 7777, 8000-9001, 9090, 9901-9908, 11080-11110, 12900-12949, 20410, and 45002.





 What URL should I use for access to data under the CDN or origin path? 

The path for a CDN mapping, or for the origin, is treated as a directory.
ibmcloud fn trigger create cosTrigger --feed /whisk.system/cos/changes --param bucket <bucket_name> --param event_types <event_type> --param prefix <prefix> --param suffix <suffix> --param endpoint <endpoint>

Verify the trigger was created by running the trigger get command.

ibmcloud fn trigger get cosTrigger









 Connecting a Cloud Functions action to the trigger 

After you create a trigger that listens for change events, you can connect it to a Cloud Functions action or sequence of actions. You can use one of the following methods to create actions:



* You can create actions by using the sample code provided in the [COS SDK](https://cloud.ibm.com/docs/cloud-object-storage/libraries?topic=cloud-object-storage-sdk-gs). The SDK includes code samples for Go, Node.js, Java, and Python.
* You can write your own [actions](https://cloud.ibm.com/docs/openwhisk?topic=openwhisk-actions) or [web actions](https://cloud.ibm.com/docs/openwhisk?topic=openwhisk-actions_web) in the language of your choice.
* You can use the sample JavaScript code provided in the following steps.





 1. Creating an action to process the trigger results 

You can use the console or CLI to create an action that is invoked by the trigger.

Before you begin

Copy the following code and save it into a file called cosChange.js. This code is used to create an action that is invoked when the trigger is fired. When you make an action using this code, the action returns the data from the bucket change event.

function main(data) {
console.log(data);
}



 Creating an action with the console 



1. Navigate to the Cloud Functions [Triggers page](https://cloud.ibm.com/functions/triggers).
2. Click the trigger that you created.
3.
Logging with applications overview 

You can use the Ingestion REST API and libraries to send application logs to an IBM® Log Analysis instance.

In an application log, you can find information that you can use to troubleshoot and monitor your application.

In Log Analysis, you can choose any of the following options to send application logs to an IBM Log Analysis instance:



  REST API 

You can send log data to an IBM Log Analysis instance by using the Ingestion REST API. For more information, see [Sending logs by using the REST API](https://cloud.ibm.com/docs/log-analysis?topic=log-analysis-ingest).





  Code library 

You can add code to an application to manage application logs through an IBM® Log Analysis instance.

The following table lists libraries that you can use to send application logs to an IBM Log Analysis instance:

![Code libraries](https://cloud.ibm.com/docs-content/v1/content/f61dbc5d84bf0c89e477a05cab04c72f429e1b7a/log-analysis/app-logs//images/app_logging_img1.png)



Table 1. Code libraries

 Library                   Git Repo    More info                                                                                                                                                                                                

 Python                    [Python](https://github.com/logdna/python)  [Sending logs by using Python](https://cloud.ibm.com/docs/log-analysis?topic=log-analysis-ingest_python).                                                                                                                                                                        
 Node                      [Node](https://github.com/logdna/nodejs)    You can send logs from your Node.js and JavaScript applications to an IBM Log Analysis instance by using the Node.js library and adding a transport.<br><br>Valid transports are Winston and Bunyan.     
 Ruby and Ruby on Rails    [Ruby](https://github.com/logdna/ruby)
Your data in Cloud Shell is automatically deleted when Cloud Shell is closed after inactivity or reaching the usage limits.
* How can I edit files in Cloud Shell?

Cloud Shell includes two text editors, Vim (vim) and Nano (nano). You can use either of these editors to work with files in Cloud Shell.
* How can I customize my Cloud Shell?

As with any bash shell, you can modify the .bashrc file in your home directory to run commands or scripts every time a session starts. For example, you might set command aliases or environment variables that you often use. Because your home directory space is temporary, you need to edit the .bashrc file each time Cloud Shell restarts.

Be careful when you edit these values because you can introduce errors that cause your sessions to not start. Don't change the CLOUDSHELL, BLUEMIX_HOME, ACCOUNT_ID, and SESSION_NAME environment variables, because they're required for your Cloud Shell environment to work.
* How can I switch accounts in Cloud Shell?

To switch the default account for all sessions, close Cloud Shell, switch the account in the IBM Cloud console menu bar, and then reopen Cloud Shell.
* Can I use sudo to run commands?

Cloud Shell is a restricted shell, so sudo isn't supported in Cloud Shell.



Creating apps



* Where can I find a list of my apps?

The [Resource list](https://cloud.ibm.com/resources) in the [IBM Cloud console](https://%7BDomainName%7D) provides summary information for the apps that you created. The Apps section in the Resource list contains all apps that you created.
* How do I delete apps?

To delete an app that you created, complete these steps:



1. From the [IBM Cloud console](https://%7BDomainName%7D), click the Menu icon ![Menu icon](https://cloud.ibm.com/icons/icon_hamburger.svg), and select Resource list.
2. Click the Actions icon !
Independent duplicates can be refreshed after the separation process completes. [↩︎](https://cloud.ibm.com/docs/faqsfnref2)







IBM Cloud Backup



* Where can I find my username for the service?

The username and password can be seen on the IBM Cloud Backup for Classic instance's Overview page, the username is in the upper-left area of the UI. The Portal Password is on the Overview tab.

You can also see the username and password through the [Device list](https://cloud.ibm.com/gen1/infrastructure/devices). To view usernames and accounts that are associated with your Devices, click Devices > Device list, and click the Device name. On the left-side menu, click Passwords. The IBM Cloud Backup for Classic service is listed in the Software Name column as "Base Client".

Alternatively, you can click Devices > Manage > Passwords. The console displays the list of your devices and the associated software with the appropriate usernames and passwords. The service name is listed as "Base Client".
* How can I change my password for the service?



1. Log in to the [IBM Cloud console](https://cloud.ibm.com/login). From the menu ![Menu icon](https://cloud.ibm.com/icons/icon_hamburger.svg), select Classic Infrastructure![Classic icon](https://cloud.ibm.com/icons/classic.svg).
2. Click Storage > Cloud Backup to display the list of backup services.
3. Click the instance name of the backup vault where you want to change your password.
4. On the Overview page, you can see your Portal Password. Click the Pencil icon to modify the password.

The IBM Cloud Backup for Classic username is displayed in the upper-left area of the page.
5. Enter the new password in the Password field.

The password must be 8 - 12 characters in length.
Independent duplicates can be refreshed after the separation process completes. [↩︎](https://cloud.ibm.com/docs?tab=faqsfnref2)







IBM Cloud Backup



* Where can I find my username for the service?

The username and password can be seen on the IBM Cloud Backup for Classic instance's Overview page, the username is in the upper-left area of the UI. The Portal Password is on the Overview tab.

You can also see the username and password through the [Device list](https://cloud.ibm.com/gen1/infrastructure/devices). To view usernames and accounts that are associated with your Devices, click Devices > Device list, and click the Device name. On the left-side menu, click Passwords. The IBM Cloud Backup for Classic service is listed in the Software Name column as "Base Client".

Alternatively, you can click Devices > Manage > Passwords. The console displays the list of your devices and the associated software with the appropriate usernames and passwords. The service name is listed as "Base Client".
* How can I change my password for the service?



1. Log in to the [IBM Cloud console](https://cloud.ibm.com/login). From the menu ![Menu icon](https://cloud.ibm.com/icons/icon_hamburger.svg), select Classic Infrastructure![Classic icon](https://cloud.ibm.com/icons/classic.svg).
2. Click Storage > Cloud Backup to display the list of backup services.
3. Click the instance name of the backup vault where you want to change your password.
4. On the Overview page, you can see your Portal Password. Click the Pencil icon to modify the password.

The IBM Cloud Backup for Classic username is displayed in the upper-left area of the page.
5. Enter the new password in the Password field.

The password must be 8 - 12 characters in length.
Integrating Secrets Manager with your apps 

Ready to integrate IBM Cloud® Secrets Manager into your existing apps or services? Take advantage of our supported developer tools.



 Supported developer tools 



 Secrets Manager SDKs 

Secrets Manager offers software development kits (SDKs) that you can use to connect with the service in various programming languages. For more information about getting started with Secrets Manager SDKs, check out the following repositories on GitHub:



* [Go SDK](https://github.com/IBM/secrets-manager-go-sdk)
* [Node.js SDK](https://github.com/IBM/secrets-manager-node-sdk)
* [Java SDK](https://github.com/IBM/secrets-manager-java-sdk)
* [Python SDK](https://github.com/IBM/secrets-manager-python-sdk)







 Secrets Manager CLI plug-in 

Building an automated flow? If you're already using the [IBM Cloud Command Line Interface (CLI)](https://cloud.ibm.com/docs/cli?topic=cli-getting-started), you can install the Secrets Manager plug-in so that you can manage secrets in your instance. For example, after you add secrets to your service instance, you can run the following CLI command to obtain a list of secrets:

ibmcloud secrets-manager all-secrets

To install Secrets Manager commands, run ibmcloud plugin install secrets-manager. For more information, check out the [Secrets Manager CLI reference](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-cli-plugin-secrets-manager-cli).





 Secrets Manager API 

If you're trying out Secrets Manager for the first time, you might want to use the Secrets Manager API to evaluate the service and test out workflows for your applications. Start by copying the service endpoint URL from the Endpoints page in your Secrets Manager service dashboard.
IBM has successfully built blockchain products and solution accelerators with Hyperledger Fabric and NoSQL databases such as OrientDB.





 If service discovery is on, will an endorsement request be routed to any peer on the network? 

It depends on whether your endorsement policy is set to "ANY", in which any peer can sign an endorsement request, or whether the policy is bound directly to an organization's peers. The service discovery information provided by the peer supplies two pieces of information, Layouts and EndorsersByGroup. With these two pieces of data, the SDK has the ability to send requests to peers in different organizations that meet the endorsement policy requirements. The Node.js SDK provides default code that uses the Layouts and EndorsersByGroup and sends the requests to the appropriate peers to meet the endorsement policy requirements. This existing logic can be customized to meet the business needs.





 Do ordering service Raft nodes use Transport Layer Security (TLS) for communication? 

Yes. The Raft ordering service nodes are configured to use TLS communication. TLS is embedded in the trust model of Hyperledger Fabric. By default, server-side TLS is enabled for all communications using TLS certificates. TLS is used to encrypt the communication between your nodes and as well as between your nodes and your applications. TLS prevents man-in-the-middle and session hijacking attacks. All IBM Blockchain Platform components use TLS to communicate with each other.





 How can I back up and restore components and networks? 

As with anything that is deployed to a Kubernetes-based cluster, backups of components and networks in the IBM® Blockchain Platform are a matter of backing up its [persistent volumes](https://kubernetes.io/docs/concepts/storage/persistent-volumes/). These volumes are where ledgers and other types of storage are mounted so they can be used by nodes.

As a result, "backing up" a component or a network is the process of saving a copy of the relevant persistent volumes, while "restoring" a component or network involves bringing up components and pointing them to these saved volumes.
The token is a delimited list of string fields, with an HMAC to prevent tampering with the strings. Each field consists of a value that is verified by CDN Edge servers when a request is made.

It is recommended that you set up your origin server to dynamically generate these tokens for each client request for the protected content. This way, you can include the IP address (IP) as a parameter and restrict access to protected content to that specific authorized user.

Akamai offers Token Auth software development kits (SDK) in multiple programming languages, which you can use to generate this token. They account for all required and optional fields.

See the following readme file pages for details on how to use the SDK of your choice.



[C Sharp ("C#")](https://github.com/BookBeat/EdgeAuth-Token-CSharp)
* [Golang ("Go")](https://github.com/mobilerider/EdgeAuth-Token-Golang)
* [Java](https://github.com/akamai/EdgeAuth-Token-Java)
* [NodeJS](https://github.com/akamai/EdgeAuth-Token-Node)
* [Python](https://github.com/akamai/EdgeAuth-Token-Python)
* [Ruby](https://github.com/akamai/EdgeAuth-Token-Ruby)



You can refer to step 2 in [Example to set token authentication](https://cloud.ibm.com/docs/CDN?topic=CDN-working-with-token-authenticationexample-to-set-token-authentication).





 Applying the token 

Attach the completed token to the URL for your target content as a query string parameter, cookie, or request header.

Token authentication generally requires the use of browser cookies to deliver a signed token as a step in the authorization process. This can affect devices and browsers that don't support using cookies, such as Apple Safari and HLS devices.
IAM Policy Management API change log 

In this change log you can learn about the latest changes, improvements, and updates to the IAM Policy Management API. The change log lists changes that have been made, ordered by the date they were released. Changes to existing API versions are designed to be compatible with existing client applications.

For information about the latest changes to the IAM Policy Management SDKs and CLI, see the change logs in the SDK repositories:



* [Java SDK change log](https://github.com/IBM/platform-services-java-sdk/blob/main/CHANGELOG.md)
* [Node SDK change log](https://github.com/IBM/platform-services-node-sdk/blob/main/CHANGELOG.md)
* [Python SDK change log](https://github.com/IBM/platform-services-python-sdk/blob/main/CHANGELOG.md)
* [Go SDK change log](https://github.com/IBM/platform-services-go-sdk/blob/main/CHANGELOG.md)
* [Cloud CLI change log](https://github.ibm.com/ibmcloud-cli/bluemix-cli/blob/master/CHANGELOG.md)





 API versioning 

The IAM Policy Management API uses URI path versioning. Incompatible changes are versioned as major changes by incrementing the URI path number (../v1/policies). All other changes to the api are expected to be compatible with existing usage.



 Active version 

The following table shows the behavior changes for each version.



Table 1. IAM Policy Management API versions

 Version Summary of changes 

 v2 New schema to support conditions and advanced operators dealing with date and time 
 v1 Initial version of IAM Policy Management API 



The v1 API is not forwards compatible with the v2 API. You can't add conditions to a policy that is created with the v1 API.