---
schema_version: "1"
id: 1681114ec7db9ccb1fa54dc3349bdb70d91ec6718626ec0d708062c1b1821ac5
title: Anypoint Studio を使用した MuleSoft Vectors Connector 1.0 の設定
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/mulesoft-vectors-connector/1.0/mulesoft-vectors-connector-studio.md
canonical_url: https://docs.mulesoft.com/jp/mulesoft-vectors-connector/1.0/mulesoft-vectors-connector-studio
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 5574e8d2e8552a8f2f568ce0705451bc73255d7e095d187b8397a0fd01215249
description: MuleSoft Documentation Site
release: "1.0"
latest: true
---
# Anypoint Studio を使用した MuleSoft Vectors Connector 1.0 の設定

Anypoint Studio (Studio) エディターは、Mule アプリケーション、プロパティ、および設定ファイルの設計と更新に役立ちます。

Studio でコネクタを追加および設定する手順は、次のとおりです。

1. [Mule プロジェクトを作成します](#create-mule-project)​。
2. [コネクタを Mule プロジェクトに追加します](#add-connector-to-project)​。
3. [共有ライブラリを設定します](#configure-shared-libraries)​。
4. [コネクタのフローのソースを設定します](#configure-source)​。
5. [フローにコネクタの操作を追加します](#add-connector-operation)​。
6. [コネクタのグローバル要素を設定します](#configure-global-element)​。
7. [その他のコネクタ項目を設定します](#configure-other-fields)​。

[「アプリケーションログの表示」](#view-app-log)​で説明されているように、コネクタを実行するときに、リアルタイムでアプリケーションログを表示して問題を確認できます。

Studio で初めてコネクタを設定する場合は、​[「Anypoint Studio を使用したコネクタの設定」](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio)​を参照してください。このトピックを参照した後、コネクタ項目についての詳細情報が必要な場合は、​[「MuleSoft Vectors Connector リファレンス」](https://docs.mulesoft.com/jp/mulesoft-vectors-connector/1.0/mulesoft-vectors-connector-reference)​を参照してください。

## [](#create-mule-project)Mule プロジェクトを作成する

Unresolved include directive in modules/ROOT/pages/mulesoft-vectors-connector-studio.adoc - include::connectors::partial$t-studio-partial.adoc\[\]

## [](#add-connector-to-project)コネクタを Mule プロジェクトに追加する

MuleSoft Vectors Connector を Mule プロジェクトに追加して、XML コードにコネクタの名前空間およびスキーマの場所を自動的に入力し、プロジェクトの ​`pom.xml`​ ファイルに必須の連動関係を追加します。

1. **\[Mule Palette (Mule パレット)\]**​ で、​**\[(X) Search in Exchange ((X) Exchange 内を検索)\]**​ をクリックします。
2. **\[Add Dependencies to Project (連動関係をプロジェクトに追加)\]**​ で、検索項目に「​`mulesoft vectors`​」と入力します。
3. **\[Available modules (使用可能なモジュール)\]**​ で ​**\[MuleSoft Vectors Connector\]**​ をクリックします。
4. **\[Add (追加)\]**​ をクリックします。
5. **\[Finish (完了)\]**​ をクリックします。

Studio でコネクタを Mule プロジェクトに追加しても、Studio ワークスペースの他のプロジェクトはそのコネクタを使用できません。

## [](#configure-shared-libraries)共有ライブラリの設定

コネクタの全体的なサイズを減らし、不要な連動関係の追加を回避するため、すべての省略可能なライブラリはコネクタから削除されており、特定のユースケースに応じて必要なライブラリのみを追加できます。Mule Maven プラグインを使用して、必要な連動関係をプロジェクトの ​`pom.xml`​ ファイルに追加できます。共有ライブラリの設定方法についての詳細は、​[「共有ライブラリの設定」](https://docs.mulesoft.com/mule-runtime/latest/mmp-concept#configure-shared-libraries)​を参照してください。

### [](#エンベディングモデル)エンベディングモデル

#### [](#設定)設定

```xml
...
<sharedLibraries>
	<sharedLibrary>
		<groupId>dev.langchain4j</groupId>
		<artifactId>langchain4j-core</artifactId>
	</sharedLibrary>
    ...
</sharedLibraries>
...
<dependencies>
	<dependency>
		<groupId>dev.langchain4j</groupId>
		<artifactId>langchain4j-core</artifactId>
		<version>1.0.1</version>
	</dependency>
    ...
</dependencies>
...
```

### [](#ベクトルストア)ベクトルストア

#### [](#接続)接続

- Azure AI Search
- AlloyDB
- Chroma
- Elasticsearch
- Milvus
- Amazon OpenSearch
- PGVector
- Pinecone
- Qdrant
- Weaviate
- MongoDB Atlas
- Ephemeral File

```xml
...
<sharedLibraries>
  <sharedLibrary>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-azure-ai-search</artifactId>
  </sharedLibrary>
  ...
</sharedLibraries>
...
<dependencies>
  <dependency>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-azure-ai-search</artifactId>
      <version>1.0.1-beta6</version>
  </dependency>
  ...
</dependencies>
...
```

```xml
...
<sharedLibraries>
  <sharedLibrary>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-community-alloydb-pg</artifactId>
  </sharedLibrary>
  ...
</sharedLibraries>
...
<dependencies>
  <dependency>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-community-alloydb-pg</artifactId>
      <version>1.0.1-beta6</version>
  </dependency>
  ...
</dependencies>
...
```

```xml
...
<sharedLibraries>
  <sharedLibrary>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-chroma</artifactId>
  </sharedLibrary>
  ...
</sharedLibraries>
...
<dependencies>
  <dependency>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-chroma</artifactId>
      <version>1.0.1-beta6</version>
  </dependency>
  ...
</dependencies>
...
```

```xml
...
<sharedLibraries>
  <sharedLibrary>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-elasticsearch</artifactId>
  </sharedLibrary>
  ...
</sharedLibraries>
...
<dependencies>
  <dependency>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-elasticsearch</artifactId>
      <version>1.0.1-beta6</version>
  </dependency>
  ...
</dependencies>
...
```

```xml
...
<sharedLibraries>
  <sharedLibrary>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-milvus</artifactId>
  </sharedLibrary>
  ...
</sharedLibraries>
...
<dependencies>
  <dependency>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-milvus</artifactId>
      <version>1.0.1-beta6</version>
  </dependency>
  ...
</dependencies>
...
```

```xml
...
<sharedLibraries>
  <sharedLibrary>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-opensearch</artifactId>
  </sharedLibrary>
  ...
</sharedLibraries>
...
<dependencies>
  <dependency>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-opensearch</artifactId>
      <version>1.0.1-beta6</version>
  </dependency>
  ...
</dependencies>
...
```

```xml
...
<sharedLibraries>
  <sharedLibrary>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-pgvector</artifactId>
  </sharedLibrary>
  ...
</sharedLibraries>
...
<dependencies>
  <dependency>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-pgvector</artifactId>
      <version>1.0.1-beta6</version>
  </dependency>
  ...
</dependencies>
...
```

<table><tbody><tr><td class="icon"><i class="fa icon-note" title="Note"></i></td><td class="content">Pinecone を Milvus または Qdrant で使用することはできません。</td></tr></tbody></table>

```xml
...
<sharedLibraries>
  <sharedLibrary>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-pinecone</artifactId>
  </sharedLibrary>
  ...
</sharedLibraries>
...
<dependencies>
  <dependency>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-pinecone</artifactId>
      <version>1.0.1-beta6</version>
  </dependency>
  ...
</dependencies>
...
```

```xml
...
<sharedLibraries>
  <sharedLibrary>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-qdrant</artifactId>
  </sharedLibrary>
  <sharedLibrary>
      <groupId>io.grpc</groupId>
      <artifactId>grpc-netty-shaded</artifactId>
  </sharedLibrary>
  ...
</sharedLibraries>
...
<dependencies>
  <dependency>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-qdrant</artifactId>
      <version>1.0.1-beta6</version>
  </dependency>
  <dependency>
      <groupId>io.grpc</groupId>
      <artifactId>grpc-netty-shaded</artifactId>
      <version>1.65.1</version>
  </dependency>
  ...
</dependencies>
...
```

```xml
...
<sharedLibraries>
  <sharedLibrary>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-weaviate</artifactId>
  </sharedLibrary>
  ...
</sharedLibraries>
...
<dependencies>
  <dependency>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-weaviate</artifactId>
      <version>1.0.1-beta6</version>
  </dependency>
  ...
</dependencies>
...
```

```xml
...
<sharedLibraries>
  <sharedLibrary>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-mongodb-atlas</artifactId>
  </sharedLibrary>
  ...
</sharedLibraries>
...
<dependencies>
  <dependency>
      <groupId>dev.langchain4j</groupId>
      <artifactId>langchain4j-mongodb-atlas</artifactId>
      <version>1.0.1-beta6</version>
  </dependency>
  ...
</dependencies>
...
```

```xml
...
<sharedLibraries>
		<sharedLibrary>
			<groupId>dev.langchain4j</groupId>
			<artifactId>langchain4j</artifactId>
		</sharedLibrary>
    ...
</sharedLibraries>
...
<dependencies>
		<dependency>
			<groupId>dev.langchain4j</groupId>
			<artifactId>langchain4j</artifactId>
			<version>1.0.1</version>
		</dependency>
    ...
</dependencies>
...
```

## [](#configure-source)ソースの設定

Unresolved include directive in modules/ROOT/pages/mulesoft-vectors-connector-studio.adoc - include::connectors::partial$t-studio-partial.adoc\[\] 次のソースのいずれかを MuleSoft Vectors Connector で使用するように設定できます。

Unresolved include directive in modules/ROOT/pages/mulesoft-vectors-connector-studio.adoc - include::connectors::partial$t-studio-partial.adoc\[\]

Unresolved include directive in modules/ROOT/pages/mulesoft-vectors-connector-studio.adoc - include::connectors::partial$t-studio-partial.adoc\[\]

## [](#add-connector-operation)フローにコネクタの操作を追加する

フローにコネクタの操作を追加するときは、そのコネクタで実行するアクションを指定しています。

MuleSoft Vectors Connector の操作を追加する手順は、次のとおりです。

1. **\[Mule Palette (Mule パレット)\]**​ で ​**\[MuleSoft Vectors Connector\]**​ を選択し、追加する操作を選択します。
2. その操作を Studio キャンバスのソースの横にドラッグします。

## [](#configure-global-element)コネクタのグローバル要素を設定する

コネクタを設定する場合、アプリケーション内のそのコネクタのすべてのインスタンスで使用できるグローバル要素を設定します。グローバル要素を設定するには、コネクタが対象のベクトルストアとエンベディングプロバイダーにアクセスするために必要な認証ログイン情報を指定する必要があります。

Unresolved include directive in modules/ROOT/pages/mulesoft-vectors-connector-studio.adoc - include::connectors::partial$t-studio-partial.adoc\[\]

MuleSoft Vectors Connector のグローバル要素を設定する手順は、次のとおりです。

1. Studio キャンバスで操作を選択します。
2. 操作のプロパティ画面で、\[Add (追加)\] (​**+**​) アイコンをクリックして、グローバル要素設定項目にアクセスします。
3. 次の設定から選択します。
    
    - エンベディング設定
    - ストア設定
    - 変換設定
4. 操作種別に応じて項目に入力します。
5. **\[OK\]**​ をクリックします。

## [](#configure-other-fields)その他のコネクタ項目の設定

コネクタのグローバル要素を設定したら、他の必須項目を設定します。必須項目は、使用するコネクタ操作によって異なります。

各操作種別の詳細な設定情報は、​[「MuleSoft Vectors - 追加設定情報」](https://docs.mulesoft.com/jp/mulesoft-vectors-connector/1.0/mulesoft-vectors-additional-config)​を参照してください。

## [](#view-app-log)アプリケーションログの表示

Unresolved include directive in modules/ROOT/pages/mulesoft-vectors-connector-studio.adoc - include::connectors::partial$t-studio-partial.adoc\[\]

## [](#関連情報)関連情報

- [Anypoint Connector の概要](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)
- [Studio を使用したコネクタの設定](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio)
- [MuleSoft Vectors Connector リファレンス](https://docs.mulesoft.com/jp/mulesoft-vectors-connector/1.0/mulesoft-vectors-connector-reference)
- [MuleSoft ヘルプセンター](https://help.mulesoft.com)