Skip to content
Merged

1344 #1863

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions docs/src/content/docs/reference/components/pinecone.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
title: "Pinecone"
description: "Pinecone is a vector database designed for efficient similarity search and storage of high-dimensional data, commonly used in machine learning and AI applications."
---
## Reference
<hr />

Pinecone is a vector database designed for efficient similarity search and storage of high-dimensional data, commonly used in machine learning and AI applications.


Categories: [artificial-intelligence]


Version: 1

<hr />



## Connections

Version: 1


### null

#### Properties

| Name | Type | Control Type | Description |
|:--------------:|:------------:|:--------------------:|:-------------------:|
| Open AI API Key | STRING | TEXT | The API key for the OpenAI API which is used to generate embeddings. |
| Pinecone API Key | STRING | TEXT | The API key for the Pinecone API. |
| Environment | STRING | TEXT | Pinecone environment. |
| Project ID | STRING | TEXT | Pinecone project ID. |
| Index Name | STRING | TEXT | Pinecone index name. |





<hr />





## Actions


### Data Query
Query data from a Pinecone vector store using OpenAI embeddings.

#### Properties

| Name | Type | Control Type | Description |
|:--------------:|:------------:|:--------------------:|:-------------------:|
| Query | STRING | TEXT | The query to be executed. |




### Load Data
Loads data into a Pinecone vector store using OpenAI embeddings.

#### Properties

| Name | Type | Control Type | Description |
|:--------------:|:------------:|:--------------------:|:-------------------:|
| Document Type | STRING | SELECT | The type of the document. |
| JSON Keys to Use | [STRING] | ARRAY_BUILDER | Json keys on which extraction of content is based. If no keys are specified, it uses the entire JSON object as content. |
| FILE_ENTRY | FILE_ENTRY |




Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version="1.0"

dependencies {
implementation("org.springframework.ai:spring-ai-openai:${rootProject.libs.versions.spring.ai.get()}")
implementation("org.springframework.ai:spring-ai-markdown-document-reader:${rootProject.libs.versions.spring.ai.get()}")
implementation("org.springframework.ai:spring-ai-pdf-document-reader:${rootProject.libs.versions.spring.ai.get()}")
implementation("org.springframework.ai:spring-ai-tika-document-reader:${rootProject.libs.versions.spring.ai.get()}")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@ version="1.0"
dependencies {
implementation("io.grpc:grpc-netty:1.69.0")
implementation("org.springframework.ai:spring-ai-openai:${rootProject.libs.versions.spring.ai.get()}")
implementation("org.springframework.ai:spring-ai-pdf-document-reader:${rootProject.libs.versions.spring.ai.get()}")
implementation("org.springframework.ai:spring-ai-pinecone-store:${rootProject.libs.versions.spring.ai.get()}")
implementation("org.springframework.ai:spring-ai-tika-document-reader:${rootProject.libs.versions.spring.ai.get()}")
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@

package com.bytechef.component.ai.vectorstore.pinecone.action;

import static com.bytechef.component.ai.vectorstore.constant.VectorStoreConstants.DATA_QUERY;
import static com.bytechef.component.ai.vectorstore.constant.VectorStoreConstants.EMBEDDING_API_KEY;
import static com.bytechef.component.ai.vectorstore.constant.VectorStoreConstants.QUERY;
import static com.bytechef.component.ai.vectorstore.pinecone.constant.PineconeConstants.API_KEY;
import static com.bytechef.component.ai.vectorstore.pinecone.constant.PineconeConstants.EMBEDDING_API_KEY;
import static com.bytechef.component.ai.vectorstore.pinecone.constant.PineconeConstants.ENVIRONMENT;
import static com.bytechef.component.ai.vectorstore.pinecone.constant.PineconeConstants.INDEX_NAME;
import static com.bytechef.component.ai.vectorstore.pinecone.constant.PineconeConstants.PROJECT_ID;
Expand All @@ -38,9 +39,9 @@
*/
public class PineconeDataQueryAction {

public static final ModifiableActionDefinition ACTION_DEFINITION = action("dataQuery")
public static final ModifiableActionDefinition ACTION_DEFINITION = action(DATA_QUERY)
.title("Data Query")
.description("Loads data into a Pinecone vector store using OpenAI embeddings.")
.description("Query data from a Pinecone vector store using OpenAI embeddings.")
.properties(
string(QUERY)
.label("Query")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@

import static com.bytechef.component.ai.vectorstore.constant.VectorStoreConstants.DOCUMENT_PROPERTY;
import static com.bytechef.component.ai.vectorstore.constant.VectorStoreConstants.DOCUMENT_TYPE_PROPERTY;
import static com.bytechef.component.ai.vectorstore.constant.VectorStoreConstants.EMBEDDING_API_KEY;
import static com.bytechef.component.ai.vectorstore.constant.VectorStoreConstants.JSON_KEYS_TO_USE_PROPERTY;
import static com.bytechef.component.ai.vectorstore.constant.VectorStoreConstants.LOAD_DATA;
import static com.bytechef.component.ai.vectorstore.pinecone.constant.PineconeConstants.API_KEY;
import static com.bytechef.component.ai.vectorstore.pinecone.constant.PineconeConstants.EMBEDDING_API_KEY;
import static com.bytechef.component.ai.vectorstore.pinecone.constant.PineconeConstants.ENVIRONMENT;
import static com.bytechef.component.ai.vectorstore.pinecone.constant.PineconeConstants.INDEX_NAME;
import static com.bytechef.component.ai.vectorstore.pinecone.constant.PineconeConstants.PROJECT_ID;
Expand All @@ -40,7 +41,7 @@
*/
public class PineconeLoadDataAction {

public static final ModifiableActionDefinition ACTION_DEFINITION = action("loadData")
public static final ModifiableActionDefinition ACTION_DEFINITION = action(LOAD_DATA)
.title("Load Data")
.description("Loads data into a Pinecone vector store using OpenAI embeddings.")
.properties(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.bytechef.component.ai.vectorstore.pinecone.connection;

import static com.bytechef.component.ai.vectorstore.constant.VectorStoreConstants.EMBEDDING_API_KEY_PROPERTY;
import static com.bytechef.component.ai.vectorstore.pinecone.constant.PineconeConstants.API_KEY;
import static com.bytechef.component.ai.vectorstore.pinecone.constant.PineconeConstants.EMBEDDING_API_KEY;
import static com.bytechef.component.ai.vectorstore.pinecone.constant.PineconeConstants.ENVIRONMENT;
import static com.bytechef.component.ai.vectorstore.pinecone.constant.PineconeConstants.INDEX_NAME;
import static com.bytechef.component.ai.vectorstore.pinecone.constant.PineconeConstants.PROJECT_ID;
Expand All @@ -37,10 +37,7 @@ public class PineconeConnection {
.authorizations(
authorization(CUSTOM)
.properties(
string(EMBEDDING_API_KEY)
.label("Open AI API Key")
.description("The API key for the OpenAI API which is used to generate embeddings.")
.required(true),
EMBEDDING_API_KEY_PROPERTY,
string(API_KEY)
.label("Pinecone API Key")
.description("The API key for the Pinecone API.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ private PineconeConstants() {
}

public static final String API_KEY = "apiKey";
public static final String EMBEDDING_API_KEY = "embeddingApiKey";
public static final String ENVIRONMENT = "environment";
public static final String INDEX_NAME = "indexName";
public static final String PROJECT_ID = "projectId";
Expand Down
Loading
Loading