@tyvm/knowhow 0.0.89 → 0.0.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONFIG.md +52 -0
- package/README.md +344 -29
- package/WORKER.md +169 -334
- package/autodoc/chat-guide.md +540 -0
- package/autodoc/cli-reference.md +765 -0
- package/autodoc/config-reference.md +541 -0
- package/autodoc/embeddings-guide.md +566 -0
- package/autodoc/generate-guide.md +477 -0
- package/autodoc/language-plugin-guide.md +443 -0
- package/autodoc/modules-guide.md +352 -0
- package/autodoc/plugins-guide.md +720 -0
- package/autodoc/quickstart-guide.md +129 -0
- package/autodoc/skills-guide.md +468 -0
- package/autodoc/worker-guide.md +526 -0
- package/package.json +1 -1
- package/src/ai.ts +33 -2
- package/src/config.ts +28 -4
- package/src/index.ts +22 -2
- package/src/processors/TokenCompressor.ts +2 -2
- package/src/processors/ToolResponseCache.ts +3 -3
- package/src/processors/tools/grepToolResponse.ts +9 -4
- package/src/processors/tools/jqToolResponse.ts +11 -6
- package/src/processors/tools/listStoredToolResponses.ts +1 -1
- package/src/processors/tools/tailToolResponse.ts +9 -4
- package/ts_build/package.json +1 -1
- package/ts_build/src/ai.js +18 -1
- package/ts_build/src/ai.js.map +1 -1
- package/ts_build/src/config.js +17 -2
- package/ts_build/src/config.js.map +1 -1
- package/ts_build/src/index.js +12 -2
- package/ts_build/src/index.js.map +1 -1
- package/ts_build/src/processors/TokenCompressor.js +2 -2
- package/ts_build/src/processors/TokenCompressor.js.map +1 -1
- package/ts_build/src/processors/ToolResponseCache.js +3 -3
- package/ts_build/src/processors/ToolResponseCache.js.map +1 -1
- package/ts_build/src/processors/tools/grepToolResponse.d.ts +3 -1
- package/ts_build/src/processors/tools/grepToolResponse.js +8 -2
- package/ts_build/src/processors/tools/grepToolResponse.js.map +1 -1
- package/ts_build/src/processors/tools/jqToolResponse.d.ts +3 -1
- package/ts_build/src/processors/tools/jqToolResponse.js +10 -4
- package/ts_build/src/processors/tools/jqToolResponse.js.map +1 -1
- package/ts_build/src/processors/tools/listStoredToolResponses.js +1 -1
- package/ts_build/src/processors/tools/listStoredToolResponses.js.map +1 -1
- package/ts_build/src/processors/tools/tailToolResponse.d.ts +3 -1
- package/ts_build/src/processors/tools/tailToolResponse.js +8 -2
- package/ts_build/src/processors/tools/tailToolResponse.js.map +1 -1
- package/autodoc/chat.mdx +0 -20
- package/autodoc/cli.mdx +0 -11
- package/autodoc/plugins/asana.mdx +0 -47
- package/autodoc/plugins/downloader/downloader.mdx +0 -38
- package/autodoc/plugins/downloader/plugin.mdx +0 -37
- package/autodoc/plugins/downloader/types.mdx +0 -42
- package/autodoc/plugins/embedding.mdx +0 -41
- package/autodoc/plugins/figma.mdx +0 -45
- package/autodoc/plugins/github.mdx +0 -40
- package/autodoc/plugins/jira.mdx +0 -46
- package/autodoc/plugins/language.mdx +0 -37
- package/autodoc/plugins/linear.mdx +0 -35
- package/autodoc/plugins/notion.mdx +0 -38
- package/autodoc/plugins/plugins.mdx +0 -59
- package/autodoc/plugins/types.mdx +0 -51
- package/autodoc/plugins/vim.mdx +0 -39
- package/autodoc/tools/addInternalTools.mdx +0 -1
- package/autodoc/tools/agentCall.mdx +0 -1
- package/autodoc/tools/asana/definitions.mdx +0 -10
- package/autodoc/tools/asana/index.mdx +0 -12
- package/autodoc/tools/askHuman.mdx +0 -1
- package/autodoc/tools/callPlugin.mdx +0 -1
- package/autodoc/tools/embeddingSearch.mdx +0 -1
- package/autodoc/tools/execCommand.mdx +0 -1
- package/autodoc/tools/fileSearch.mdx +0 -1
- package/autodoc/tools/finalAnswer.mdx +0 -1
- package/autodoc/tools/github/definitions.mdx +0 -6
- package/autodoc/tools/github/index.mdx +0 -8
- package/autodoc/tools/index.mdx +0 -14
- package/autodoc/tools/lintFile.mdx +0 -7
- package/autodoc/tools/list.mdx +0 -16
- package/autodoc/tools/modifyFile.mdx +0 -7
- package/autodoc/tools/patch.mdx +0 -9
- package/autodoc/tools/readBlocks.mdx +0 -1
- package/autodoc/tools/readFile.mdx +0 -1
- package/autodoc/tools/scanFile.mdx +0 -1
- package/autodoc/tools/textSearch.mdx +0 -6
- package/autodoc/tools/types/fileblock.mdx +0 -1
- package/autodoc/tools/visionTool.mdx +0 -1
- package/autodoc/tools/writeFile.mdx +0 -1
- package/test-comprehensive.ts +0 -31
|
@@ -2,5 +2,7 @@ import { Tool } from "../../clients";
|
|
|
2
2
|
export interface TailOptions {
|
|
3
3
|
lines?: number;
|
|
4
4
|
}
|
|
5
|
-
export declare function executeTail(data: string, toolCallId: string, availableIds: string[], options?: TailOptions
|
|
5
|
+
export declare function executeTail(data: string, toolCallId: string, availableIds: string[], options?: TailOptions, toolNameMap?: {
|
|
6
|
+
[toolCallId: string]: string;
|
|
7
|
+
}): Promise<string>;
|
|
6
8
|
export declare const tailToolResponseDefinition: Tool;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.tailToolResponseDefinition = exports.executeTail = void 0;
|
|
4
|
-
async function executeTail(data, toolCallId, availableIds, options) {
|
|
4
|
+
async function executeTail(data, toolCallId, availableIds, options, toolNameMap) {
|
|
5
5
|
if (data === null || data === undefined) {
|
|
6
|
-
|
|
6
|
+
const idList = availableIds
|
|
7
|
+
.map((id) => {
|
|
8
|
+
const name = toolNameMap?.[id];
|
|
9
|
+
return name ? `${id} (${name})` : id;
|
|
10
|
+
})
|
|
11
|
+
.join("\n - ");
|
|
12
|
+
return `Error: No tool response found for toolCallId "${toolCallId}". Call listStoredToolResponses to see all available responses with their tool names.\n\nAvailable toolCallIds:\n - ${idList || "(none)"}`;
|
|
7
13
|
}
|
|
8
14
|
try {
|
|
9
15
|
const lines = data.split("\n");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tailToolResponse.js","sourceRoot":"","sources":["../../../../src/processors/tools/tailToolResponse.ts"],"names":[],"mappings":";;;AASO,KAAK,UAAU,WAAW,CAC/B,IAAY,EACZ,UAAkB,EAClB,YAAsB,EACtB,OAAqB;
|
|
1
|
+
{"version":3,"file":"tailToolResponse.js","sourceRoot":"","sources":["../../../../src/processors/tools/tailToolResponse.ts"],"names":[],"mappings":";;;AASO,KAAK,UAAU,WAAW,CAC/B,IAAY,EACZ,UAAkB,EAClB,YAAsB,EACtB,OAAqB,EACrB,WAA8C;IAE9C,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS,EAAE;QACvC,MAAM,MAAM,GAAG,YAAY;aACxB,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE;YACV,MAAM,IAAI,GAAG,WAAW,EAAE,CAAC,EAAE,CAAC,CAAC;YAC/B,OAAO,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QACvC,CAAC,CAAC;aACD,IAAI,CAAC,QAAQ,CAAC,CAAC;QAClB,OAAO,iDAAiD,UAAU,wHAAwH,MAAM,IAAI,QAAQ,EAAE,CAAC;KAChN;IAED,IAAI;QACF,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC/B,MAAM,QAAQ,GAAG,OAAO,EAAE,KAAK,IAAI,EAAE,CAAC;QAGtC,IAAI,QAAQ,IAAI,CAAC,EAAE;YACjB,OAAO,EAAE,CAAC;SACX;QAGD,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,QAAQ,CAAC,CAAC;QACtD,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAGxC,MAAM,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;YAC5C,MAAM,OAAO,GAAG,QAAQ,GAAG,GAAG,GAAG,CAAC,CAAC;YACnC,OAAO,GAAG,OAAO,KAAK,IAAI,EAAE,CAAC;QAC/B,CAAC,CAAC,CAAC;QAEH,OAAO,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC7B;IAAC,OAAO,KAAU,EAAE;QACnB,OAAO,eAAe,KAAK,CAAC,OAAO,EAAE,CAAC;KACvC;AACH,CAAC;AAxCD,kCAwCC;AAEY,QAAA,0BAA0B,GAAS;IAC9C,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,kBAAkB;QACxB,WAAW,EACT,8MAA8M;QAChN,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE;gBACV,UAAU,EAAE;oBACV,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,4CAA4C;iBAC1D;gBACD,OAAO,EAAE;oBACP,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,8FAA8F;oBAC3G,UAAU,EAAE;wBACV,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,sDAAsD;yBACpE;qBACF;iBACF;aACF;YACD,QAAQ,EAAE,CAAC,YAAY,CAAC;SACzB;KACF;CACF,CAAC"}
|
package/autodoc/chat.mdx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
This command line tool allows users to provide various inputs to interact with an AI assistant. Here are the key inputs a user can provide:
|
|
2
|
-
|
|
3
|
-
1. **Commands**: Users can input specific commands to control the tool's behavior. The available commands include:
|
|
4
|
-
- `agent`: Toggle the use of a specific agent.
|
|
5
|
-
- `agents`: List and select from available agents.
|
|
6
|
-
- `debug`: Toggle debug mode.
|
|
7
|
-
- `multi`: Enable or disable multi-line input.
|
|
8
|
-
- `search`: Search for embeddings.
|
|
9
|
-
- `clear`: Clear the chat history.
|
|
10
|
-
- `exit`: Exit the tool.
|
|
11
|
-
|
|
12
|
-
2. **Questions or Prompts**: Users can ask questions or provide prompts to the AI assistant. The tool will process these inputs and generate responses based on the provided embeddings and context.
|
|
13
|
-
|
|
14
|
-
3. **Embedding Options**: When searching for embeddings, users can input options like `next`, `exit`, `embeddings`, and `use` to navigate through and select embeddings.
|
|
15
|
-
|
|
16
|
-
4. **Agent Selection**: Users can select different agents to handle their queries by listing available agents and choosing one.
|
|
17
|
-
|
|
18
|
-
5. **Chat History**: Users can view and clear the chat history to manage the context of their interactions.
|
|
19
|
-
|
|
20
|
-
These inputs allow users to interact with the AI assistant in a flexible and controlled manner, leveraging various commands and options to get the desired responses.
|
package/autodoc/cli.mdx
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
This command line tool accepts the following inputs (commands):
|
|
2
|
-
|
|
3
|
-
1. **init**: Initializes the tool.
|
|
4
|
-
2. **generate**: Generates some output.
|
|
5
|
-
3. **embed**: Embeds data.
|
|
6
|
-
4. **upload**: Uploads data.
|
|
7
|
-
5. **download**: Downloads data.
|
|
8
|
-
6. **upload:openai**: Uploads data to OpenAI.
|
|
9
|
-
7. **chat**: Starts a chat session.
|
|
10
|
-
|
|
11
|
-
If an unknown command is provided, it will display a message listing the valid commands.
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# Asana Plugin Executive Summary
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
The Asana Plugin is designed to enhance chat interactions by integrating Asana task and project data. It detects and resolves Asana task and project URLs within user prompts, retrieves relevant data, and embeds this information into the chat context. This plugin is particularly useful for teams and individuals who rely on Asana for project management and want to seamlessly incorporate task details into their communication workflows.
|
|
6
|
-
|
|
7
|
-
## Key Features
|
|
8
|
-
|
|
9
|
-
### Input Detection and Resolution
|
|
10
|
-
|
|
11
|
-
- **Task URLs**: The plugin identifies Asana task URLs within user prompts. It extracts these URLs and fetches the corresponding task details from Asana.
|
|
12
|
-
- **Project URLs**: Similarly, the plugin detects Asana project URLs and retrieves all tasks associated with the specified projects.
|
|
13
|
-
|
|
14
|
-
### Contextual Enhancements
|
|
15
|
-
|
|
16
|
-
- **Task Details**: For each detected task, the plugin generates a detailed string that includes the task name, description, URL, and completion status. This information is then embedded into the chat, providing users with immediate access to task specifics.
|
|
17
|
-
- **Project Tasks**: When project URLs are detected, the plugin fetches and embeds details for all tasks within the project, offering a comprehensive view of project progress and individual task statuses.
|
|
18
|
-
|
|
19
|
-
### Embeddings
|
|
20
|
-
|
|
21
|
-
- **Minimal Embeddings**: The plugin creates minimal embeddings for each task, which include:
|
|
22
|
-
- **ID**: The unique URL of the task.
|
|
23
|
-
- **Text**: A formatted string containing task details.
|
|
24
|
-
- **Metadata**: JSON-encoded task data for additional context.
|
|
25
|
-
|
|
26
|
-
These embeddings can be used to enrich chat interactions, making it easier for users to reference and discuss specific tasks and projects.
|
|
27
|
-
|
|
28
|
-
## Environment Variables
|
|
29
|
-
|
|
30
|
-
To function correctly, the Asana Plugin requires the following environment variable to be set:
|
|
31
|
-
|
|
32
|
-
- **ASANA_TOKEN**: This token is used to authenticate API requests to Asana. It should be set to a valid Asana access token.
|
|
33
|
-
|
|
34
|
-
Example:
|
|
35
|
-
```bash
|
|
36
|
-
export ASANA_TOKEN=your_asana_access_token
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
## Usage
|
|
40
|
-
|
|
41
|
-
The Asana Plugin can be integrated into chat applications to provide real-time access to Asana task and project data. Users can simply include Asana task or project URLs in their messages, and the plugin will automatically fetch and embed the relevant details. This functionality is particularly useful for:
|
|
42
|
-
|
|
43
|
-
- **Project Management**: Keeping team members informed about task statuses and project progress.
|
|
44
|
-
- **Collaboration**: Facilitating discussions around specific tasks and projects by providing immediate access to detailed information.
|
|
45
|
-
- **Productivity**: Reducing the need to switch between chat applications and Asana, thereby streamlining workflows.
|
|
46
|
-
|
|
47
|
-
By leveraging the Asana Plugin, teams can enhance their communication efficiency and ensure that everyone stays on the same page with up-to-date task and project information.
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# Executive Summary: Downloader Plugin
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
The Downloader Plugin is a comprehensive tool designed to facilitate the downloading, chunking, and transcription of audio and video content from various sources. This plugin is particularly useful for users who need to process large media files, extract meaningful information, and integrate this data into chat applications or other systems.
|
|
6
|
-
|
|
7
|
-
## Key Features
|
|
8
|
-
|
|
9
|
-
### Input Detection and Resolution
|
|
10
|
-
|
|
11
|
-
- **URL Input**: The plugin accepts URLs as input, specifically targeting media content from platforms like YouTube.
|
|
12
|
-
- **File Existence Check**: Before downloading, the plugin checks if the file already exists in the specified output directory to avoid redundant downloads.
|
|
13
|
-
- **Media Information Retrieval**: It fetches detailed information about the media content, such as file ID and extension, ensuring accurate processing.
|
|
14
|
-
|
|
15
|
-
### Contextual Enhancements
|
|
16
|
-
|
|
17
|
-
- **Chunking Media Files**: The plugin can split large media files into smaller, manageable chunks. This is particularly useful for lengthy audio or video files, making them easier to process and transcribe.
|
|
18
|
-
- **Transcription of Chunks**: Each chunk of the media file is transcribed using OpenAI's Whisper model. This transcription can then be used to add context to chats, making the content searchable and more interactive.
|
|
19
|
-
|
|
20
|
-
### Embeddings Generation
|
|
21
|
-
|
|
22
|
-
- **Text Embeddings**: The transcribed text from media chunks can be used to generate embeddings. These embeddings can be integrated into chat applications to enhance search capabilities, provide summaries, or enable other advanced text processing features.
|
|
23
|
-
|
|
24
|
-
## Environment Variables
|
|
25
|
-
|
|
26
|
-
To ensure the plugin functions correctly, the following environment variables must be set:
|
|
27
|
-
|
|
28
|
-
- **OPENAI_KEY**: This variable is required to authenticate requests to the OpenAI API for transcription services.
|
|
29
|
-
|
|
30
|
-
## Usage Scenarios
|
|
31
|
-
|
|
32
|
-
- **Content Creators**: Download and transcribe video or audio content to create searchable text archives.
|
|
33
|
-
- **Developers**: Integrate media content into chat applications, enhancing user interaction with contextual information.
|
|
34
|
-
- **Researchers**: Process large volumes of media data, extracting and analyzing transcriptions for insights.
|
|
35
|
-
|
|
36
|
-
## Conclusion
|
|
37
|
-
|
|
38
|
-
The Downloader Plugin is a versatile tool that simplifies the process of downloading, chunking, and transcribing media content. By leveraging advanced transcription services and providing detailed media information, it adds significant value to chat applications and other systems requiring rich, contextual data. Ensure the necessary environment variables are set to fully utilize the plugin's capabilities.
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# Downloader Plugin Executive Summary
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
The Downloader Plugin is designed to enhance chat interactions by detecting and resolving URLs within user inputs. It provides additional context to chats by downloading and converting the content of the URLs into text. Furthermore, it generates embeddings from the downloaded content, which can be used for various purposes such as search, recommendation, and analysis.
|
|
6
|
-
|
|
7
|
-
## Key Features
|
|
8
|
-
|
|
9
|
-
### URL Detection and Resolution
|
|
10
|
-
- **Input Detection**: The plugin scans user inputs for URLs using a regular expression.
|
|
11
|
-
- **Content Download**: It attempts to download the content from the detected URLs, excluding certain file types (e.g., images like jpg, jpeg, png, gif).
|
|
12
|
-
- **Text Conversion**: The downloaded content is converted into text, which can then be used to provide additional context in chats.
|
|
13
|
-
|
|
14
|
-
### Contextual Enhancements
|
|
15
|
-
- **Transcript Generation**: The plugin generates a transcript of the downloaded content, which can be appended to the chat to provide more information and context.
|
|
16
|
-
- **Error Handling**: If a URL cannot be downloaded or processed, the plugin logs the error and continues processing other URLs.
|
|
17
|
-
|
|
18
|
-
### Embedding Generation
|
|
19
|
-
- **Minimal Embeddings**: The plugin generates minimal embeddings from the text content of the downloaded URLs. These embeddings include:
|
|
20
|
-
- **ID**: The URL of the content.
|
|
21
|
-
- **Text**: The converted text from the downloaded content.
|
|
22
|
-
- **Metadata**: Additional metadata (currently empty but can be extended).
|
|
23
|
-
|
|
24
|
-
## Environment Variables
|
|
25
|
-
|
|
26
|
-
The following environment variables are required for the plugin to function correctly:
|
|
27
|
-
|
|
28
|
-
- **`process.env.DOWNLOAD_DIR`**: Specifies the directory where the downloaded files will be stored. Default is set to `.knowhow/downloads/`.
|
|
29
|
-
|
|
30
|
-
## Usage
|
|
31
|
-
|
|
32
|
-
The Downloader Plugin can be used in various scenarios where additional context from external URLs is beneficial. For example:
|
|
33
|
-
- **Customer Support**: Automatically fetch and display relevant documentation or resources linked in customer queries.
|
|
34
|
-
- **Content Aggregation**: Collect and summarize information from multiple sources for research or reporting purposes.
|
|
35
|
-
- **Knowledge Management**: Enhance internal knowledge bases by embedding content from external URLs.
|
|
36
|
-
|
|
37
|
-
By integrating the Downloader Plugin, users can significantly enrich their chat interactions with relevant and contextual information derived from external sources.
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# Executive Summary: Audio and Video Download Plugin
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
This plugin is designed to facilitate the detection, resolution, and contextual enhancement of audio and video downloads. It provides a comprehensive set of features that allow users to manage and process multimedia content efficiently. The plugin is particularly useful for applications that require detailed metadata extraction, format resolution, and embedding generation for audio and video files.
|
|
6
|
-
|
|
7
|
-
## Key Features
|
|
8
|
-
|
|
9
|
-
### Input Detection and Resolution
|
|
10
|
-
|
|
11
|
-
- **Audio and Video Formats**: The plugin can detect various audio and video formats, including their extensions, resolutions, bitrates, and codecs.
|
|
12
|
-
- **Download Information**: It provides detailed information about the downloadable content, such as title, description, thumbnail, age limit, and available formats.
|
|
13
|
-
- **Protocol and Headers**: The plugin supports different protocols and can handle HTTP headers required for downloading content.
|
|
14
|
-
|
|
15
|
-
### Contextual Enhancements
|
|
16
|
-
|
|
17
|
-
- **Metadata Extraction**: Extracts comprehensive metadata from audio and video files, including subtitles, extractor details, and webpage URLs.
|
|
18
|
-
- **Subtitles and Playlists**: Supports the extraction and management of subtitles and playlist information.
|
|
19
|
-
- **DRM Detection**: Identifies whether the content has Digital Rights Management (DRM) protection.
|
|
20
|
-
|
|
21
|
-
### Embedding Generation
|
|
22
|
-
|
|
23
|
-
- **Audio and Video Embeddings**: Generates embeddings for audio and video content, which can be used for various applications such as content recommendation, search optimization, and more.
|
|
24
|
-
- **Format-Specific Embeddings**: Provides embeddings based on specific formats, ensuring that the content is optimized for different use cases.
|
|
25
|
-
|
|
26
|
-
## Environment Variables
|
|
27
|
-
|
|
28
|
-
To ensure the plugin functions correctly, certain environment variables need to be set. These variables are crucial for configuring the plugin and enabling its features. Below are the required environment variables:
|
|
29
|
-
|
|
30
|
-
- **`process.env.API_KEY`**: The API key required for accessing certain functionalities of the plugin.
|
|
31
|
-
- **`process.env.DOWNLOAD_PATH`**: The path where downloaded content will be stored.
|
|
32
|
-
- **`process.env.LOG_LEVEL`**: The level of logging detail (e.g., `info`, `debug`, `error`).
|
|
33
|
-
|
|
34
|
-
## Usage
|
|
35
|
-
|
|
36
|
-
This plugin can be integrated into applications that require robust audio and video processing capabilities. It is particularly useful for:
|
|
37
|
-
|
|
38
|
-
- **Content Management Systems (CMS)**: Enhancing multimedia content with detailed metadata and embeddings.
|
|
39
|
-
- **Media Players**: Providing rich context and format resolution for better playback experience.
|
|
40
|
-
- **Data Analysis Tools**: Extracting and analyzing multimedia content for insights and trends.
|
|
41
|
-
|
|
42
|
-
By leveraging this plugin, users can significantly improve the efficiency and effectiveness of their multimedia content management and processing workflows.
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# Executive Summary: Embedding Plugin
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
The Embedding Plugin is designed to enhance chat interactions by detecting and resolving user prompts, adding relevant context to conversations, and generating sophisticated embeddings. This plugin is particularly useful for applications that require contextual understanding and retrieval of information from a knowledge base.
|
|
6
|
-
|
|
7
|
-
## Key Features
|
|
8
|
-
|
|
9
|
-
### Input Detection and Resolution
|
|
10
|
-
|
|
11
|
-
- **User Prompt Handling**: The plugin is capable of detecting user prompts and processing them to retrieve relevant information.
|
|
12
|
-
- **Contextual Responses**: By analyzing the user input, the plugin can provide contextually appropriate responses, enhancing the overall user experience.
|
|
13
|
-
|
|
14
|
-
### Context Addition
|
|
15
|
-
|
|
16
|
-
- **Knowledge Base Integration**: The plugin integrates with a pre-configured knowledge base to fetch relevant information.
|
|
17
|
-
- **Contextual Embedding**: It adds extra context to chats by retrieving and presenting the most relevant pieces of information from the knowledge base.
|
|
18
|
-
- **Response Formatting**: The plugin formats the retrieved information into a coherent response that can be easily understood by the user.
|
|
19
|
-
|
|
20
|
-
### Embedding Generation
|
|
21
|
-
|
|
22
|
-
- **Configured Embeddings**: The plugin utilizes pre-configured embeddings to process and understand user prompts.
|
|
23
|
-
- **Query Embedding**: It queries the embeddings to find the most relevant information that matches the user prompt.
|
|
24
|
-
- **Result Presentation**: The plugin presents the top results, excluding the vector data, to provide a clean and concise response.
|
|
25
|
-
|
|
26
|
-
## Environment Variables
|
|
27
|
-
|
|
28
|
-
To ensure the proper functioning of the Embedding Plugin, certain environment variables need to be set. These variables are crucial for configuring the embeddings and querying the knowledge base. The required environment variables include:
|
|
29
|
-
|
|
30
|
-
- **EMBEDDING_API_KEY**: This variable is used to authenticate and access the embedding service.
|
|
31
|
-
- **KNOWLEDGE_BASE_URL**: This variable specifies the URL of the knowledge base that the plugin will query for information.
|
|
32
|
-
|
|
33
|
-
## Usage
|
|
34
|
-
|
|
35
|
-
The Embedding Plugin can be used in various applications where contextual understanding and information retrieval are essential. It is particularly useful in:
|
|
36
|
-
|
|
37
|
-
- **Customer Support**: Enhancing automated responses by providing relevant information from a knowledge base.
|
|
38
|
-
- **Virtual Assistants**: Improving the accuracy and relevance of responses by adding contextual information.
|
|
39
|
-
- **Educational Tools**: Assisting in providing detailed and contextually appropriate answers to user queries.
|
|
40
|
-
|
|
41
|
-
By integrating the Embedding Plugin, applications can significantly improve their interaction quality, providing users with more accurate and contextually relevant information.
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# Figma Plugin Executive Summary
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
The Figma Plugin is designed to enhance user interactions by integrating Figma file data into chat environments. It detects and resolves Figma file URLs from user prompts, fetches relevant data from these files, and provides enriched context to the chat. Additionally, it generates embeddings based on the extracted Figma data, which can be used for various downstream applications such as search, recommendation, and more.
|
|
6
|
-
|
|
7
|
-
## Key Features
|
|
8
|
-
|
|
9
|
-
### Input Detection and Resolution
|
|
10
|
-
|
|
11
|
-
- **URL Extraction**: The plugin identifies Figma file URLs embedded within user prompts.
|
|
12
|
-
- **Data Fetching**: It retrieves detailed information from the specified Figma files, including images, components, styles, and more.
|
|
13
|
-
- **Error Handling**: The plugin gracefully handles errors during data fetching, ensuring robust performance.
|
|
14
|
-
|
|
15
|
-
### Context Enrichment
|
|
16
|
-
|
|
17
|
-
- **Image Descriptions**: By leveraging AI (e.g., GPT Vision), the plugin generates descriptive text for images found within Figma files. This provides users with a richer understanding of the visual content.
|
|
18
|
-
- **Structured Data**: The plugin formats and presents Figma data in a structured manner, making it easier for users to comprehend and utilize the information.
|
|
19
|
-
|
|
20
|
-
### Embedding Generation
|
|
21
|
-
|
|
22
|
-
- **Minimal Embeddings**: The plugin creates minimal embeddings from the Figma data, which include:
|
|
23
|
-
- **ID**: Unique identifier for the Figma file.
|
|
24
|
-
- **Text**: A JSON string representation of the Figma data.
|
|
25
|
-
- **Metadata**: Additional metadata associated with the Figma file.
|
|
26
|
-
|
|
27
|
-
These embeddings can be used for various purposes, such as improving search relevance, enhancing recommendations, and more.
|
|
28
|
-
|
|
29
|
-
## Environment Variables
|
|
30
|
-
|
|
31
|
-
To function correctly, the Figma Plugin requires the following environment variable to be set:
|
|
32
|
-
|
|
33
|
-
- **FIGMA_API_KEY**: This is the personal access token used to authenticate requests to the Figma API. It must be set in the environment where the plugin is running.
|
|
34
|
-
|
|
35
|
-
## Usage
|
|
36
|
-
|
|
37
|
-
The Figma Plugin can be integrated into chat applications to provide users with enhanced interactions involving Figma files. Here’s how it can be used:
|
|
38
|
-
|
|
39
|
-
1. **Detect Figma URLs**: The plugin scans user prompts for Figma file URLs.
|
|
40
|
-
2. **Fetch Figma Data**: It retrieves data from the identified Figma files, including images and other relevant components.
|
|
41
|
-
3. **Generate Descriptions**: Using AI, the plugin generates descriptive text for images within the Figma files.
|
|
42
|
-
4. **Embed Data**: It creates minimal embeddings from the Figma data, which can be used for various downstream applications.
|
|
43
|
-
5. **Enrich Chat Context**: The plugin adds enriched context to the chat, providing users with detailed information about the Figma files.
|
|
44
|
-
|
|
45
|
-
By integrating this plugin, chat applications can offer users a more interactive and informative experience when dealing with Figma files.
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# GitHub Plugin Executive Summary
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
The GitHub Plugin is designed to enhance chat interactions by detecting and resolving GitHub pull request URLs within user prompts. It provides additional context by embedding detailed information about the changes in the pull requests. This plugin is particularly useful for teams and individuals who frequently discuss code changes and need quick access to the specifics of those changes.
|
|
6
|
-
|
|
7
|
-
## Key Features
|
|
8
|
-
|
|
9
|
-
### Input Detection and Resolution
|
|
10
|
-
|
|
11
|
-
- **Pull Request URL Detection**: The plugin scans user prompts for GitHub pull request URLs. It uses a regex pattern to identify URLs that match the format `https://github.com/{owner}/{repo}/pull/{pull_number}`.
|
|
12
|
-
- **Diff Retrieval**: Once a pull request URL is detected, the plugin retrieves the diff associated with that pull request. This includes all the changes made in the pull request, formatted as a diff.
|
|
13
|
-
|
|
14
|
-
### Contextual Enhancements
|
|
15
|
-
|
|
16
|
-
- **Parsed Diffs**: The plugin parses the diffs to filter out large changes, ensuring that only manageable and relevant changes are included. This helps in focusing on the most significant parts of the pull request.
|
|
17
|
-
- **Formatted Output**: The diffs are formatted in a readable manner, often in Markdown, making it easy to understand the changes directly within the chat interface.
|
|
18
|
-
|
|
19
|
-
### Embeddings
|
|
20
|
-
|
|
21
|
-
- **Minimal Embeddings**: The plugin generates minimal embeddings for the detected pull request URLs. Each embedding includes:
|
|
22
|
-
- **ID**: The URL of the pull request.
|
|
23
|
-
- **Text**: A JSON string representation of the parsed diff.
|
|
24
|
-
- **Metadata**: Additional metadata, if any, associated with the diff.
|
|
25
|
-
|
|
26
|
-
## Environment Variables
|
|
27
|
-
|
|
28
|
-
To function correctly, the GitHub Plugin requires the following environment variable to be set:
|
|
29
|
-
|
|
30
|
-
- **GITHUB_TOKEN**: This is a personal access token used to authenticate with the GitHub API. It must be set in the environment where the plugin is running. The token should have sufficient permissions to read pull request data from the repositories of interest.
|
|
31
|
-
|
|
32
|
-
## Usage
|
|
33
|
-
|
|
34
|
-
The GitHub Plugin can be used in various scenarios, including:
|
|
35
|
-
|
|
36
|
-
- **Code Reviews**: Automatically expand pull request URLs in chat to show the changes, facilitating quick reviews and discussions.
|
|
37
|
-
- **Team Collaboration**: Enhance team communication by providing immediate context about code changes without leaving the chat interface.
|
|
38
|
-
- **Automated Reporting**: Generate summaries of pull request changes for reporting purposes or automated notifications.
|
|
39
|
-
|
|
40
|
-
By integrating this plugin, users can streamline their workflow, reduce context-switching, and improve the efficiency of code-related discussions.
|
package/autodoc/plugins/jira.mdx
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# Jira Plugin Executive Summary
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
The Jira Plugin is designed to enhance chat interactions by detecting and resolving Jira issue URLs within user prompts. It provides additional context to chats by embedding detailed information about the referenced Jira issues. This plugin is particularly useful for teams that rely on Jira for project management and need to quickly access and share issue details within their communication channels.
|
|
6
|
-
|
|
7
|
-
## Key Features
|
|
8
|
-
|
|
9
|
-
### Input Detection and Resolution
|
|
10
|
-
|
|
11
|
-
- **URL Extraction**: The plugin scans user prompts for Jira issue URLs based on a predefined pattern.
|
|
12
|
-
- **Issue Retrieval**: It fetches detailed information about the identified Jira issues using the Jira API.
|
|
13
|
-
- **Error Handling**: The plugin gracefully handles errors during the issue retrieval process, ensuring that the chat experience remains smooth even if some issues cannot be fetched.
|
|
14
|
-
|
|
15
|
-
### Contextual Enhancements
|
|
16
|
-
|
|
17
|
-
- **Issue Embedding**: The plugin generates embeddings for the detected Jira issues, which include the issue ID, a JSON representation of the issue details, and metadata.
|
|
18
|
-
- **Chat Augmentation**: It enriches chat conversations by providing a structured summary of the Jira issues, including the issue key, summary, URL, and description.
|
|
19
|
-
|
|
20
|
-
### Embedding Generation
|
|
21
|
-
|
|
22
|
-
- **Minimal Embedding**: The plugin creates minimal embeddings that encapsulate essential information about each Jira issue. These embeddings can be used to provide quick references or to integrate with other systems that require issue data.
|
|
23
|
-
|
|
24
|
-
## Environment Variables
|
|
25
|
-
|
|
26
|
-
To function correctly, the Jira Plugin requires the following environment variables to be set:
|
|
27
|
-
|
|
28
|
-
- **JIRA_HOST**: The host URL of the Jira instance.
|
|
29
|
-
- **JIRA_USER**: The username for authenticating with the Jira API.
|
|
30
|
-
- **JIRA_PASSWORD**: The password for authenticating with the Jira API.
|
|
31
|
-
|
|
32
|
-
These environment variables ensure secure and authenticated access to the Jira instance, allowing the plugin to fetch issue details as needed.
|
|
33
|
-
|
|
34
|
-
## Usage
|
|
35
|
-
|
|
36
|
-
The Jira Plugin can be integrated into chat systems to automatically detect and resolve Jira issue URLs. When a user includes a Jira issue URL in their message, the plugin will:
|
|
37
|
-
|
|
38
|
-
1. Extract the URL and identify the corresponding Jira issue.
|
|
39
|
-
2. Fetch detailed information about the issue from the Jira API.
|
|
40
|
-
3. Embed the issue details into the chat, providing a concise summary that includes the issue key, summary, URL, and description.
|
|
41
|
-
|
|
42
|
-
This functionality allows team members to quickly access and share relevant Jira issue information without leaving their chat environment, thereby improving productivity and collaboration.
|
|
43
|
-
|
|
44
|
-
## Conclusion
|
|
45
|
-
|
|
46
|
-
The Jira Plugin is a powerful tool for teams that use Jira for project management. By automatically detecting and resolving Jira issue URLs and embedding detailed issue information into chats, it enhances communication and ensures that team members have quick access to the information they need. Setting the required environment variables ensures secure and seamless integration with your Jira instance.
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# Language Plugin Executive Summary
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
The Language Plugin is designed to enhance user interactions by detecting specific terms within user prompts and providing additional context to enrich the conversation. This plugin integrates with various other plugins and sources to gather relevant information, ensuring that responses are well-informed and contextually accurate.
|
|
6
|
-
|
|
7
|
-
## Key Features
|
|
8
|
-
|
|
9
|
-
### Input Detection and Resolution
|
|
10
|
-
|
|
11
|
-
- **Term Detection**: The plugin scans user prompts for specific terms defined in a language configuration file.
|
|
12
|
-
- **Contextual Expansion**: Upon detecting these terms, the plugin retrieves relevant information from various sources, including files and other integrated plugins.
|
|
13
|
-
|
|
14
|
-
### Context Addition
|
|
15
|
-
|
|
16
|
-
- **File Content Retrieval**: The plugin reads and includes content from specified files that are relevant to the detected terms.
|
|
17
|
-
- **Textual Data Inclusion**: It also incorporates predefined textual data associated with the detected terms.
|
|
18
|
-
- **Plugin Integration**: The plugin can call other integrated plugins (e.g., GitHub, Asana, Jira, Linear) to fetch additional context, ensuring a comprehensive response.
|
|
19
|
-
|
|
20
|
-
### Embeddings Generation
|
|
21
|
-
|
|
22
|
-
- **Contextual Embeddings**: Although the primary function is to add context, the plugin can generate embeddings based on the user prompt and the gathered contextual information. These embeddings can be used to further refine responses or for other analytical purposes.
|
|
23
|
-
|
|
24
|
-
## Environment Variables
|
|
25
|
-
|
|
26
|
-
To function correctly, the Language Plugin requires the following environment variables to be set:
|
|
27
|
-
|
|
28
|
-
- **`process.env.CONFIG_PATH`**: Path to the main configuration file.
|
|
29
|
-
- **`process.env.LANGUAGE_CONFIG_PATH`**: Path to the language-specific configuration file.
|
|
30
|
-
|
|
31
|
-
These environment variables ensure that the plugin can access the necessary configuration files to detect terms and gather relevant context.
|
|
32
|
-
|
|
33
|
-
## Usage
|
|
34
|
-
|
|
35
|
-
The Language Plugin can be used in any application where enhanced, contextually aware responses are needed. It is particularly useful in customer support, virtual assistants, and any interactive system where understanding and responding to user queries accurately is crucial.
|
|
36
|
-
|
|
37
|
-
By integrating with other plugins and sources, the Language Plugin ensures that responses are not only relevant but also enriched with additional information, providing a more comprehensive and satisfying user experience.
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# Linear Plugin Executive Summary
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
The Linear Plugin is designed to enhance chat interactions by detecting and resolving Linear issue URLs within user prompts. It provides additional context to chats by embedding detailed information about the referenced Linear issues. This plugin is particularly useful for teams using Linear for project management, as it allows seamless integration of issue tracking data into chat environments.
|
|
6
|
-
|
|
7
|
-
## Key Features
|
|
8
|
-
|
|
9
|
-
### Input Detection and Resolution
|
|
10
|
-
|
|
11
|
-
- **URL Extraction**: The plugin scans user prompts for Linear issue URLs. It uses a regex pattern to identify URLs that match the Linear issue format.
|
|
12
|
-
- **Issue Data Retrieval**: For each detected URL, the plugin fetches detailed information about the corresponding Linear issue, including its identifier, title, URL, and description.
|
|
13
|
-
|
|
14
|
-
### Contextual Enhancements
|
|
15
|
-
|
|
16
|
-
- **Issue Embedding**: The plugin generates embeddings for each detected Linear issue. These embeddings include:
|
|
17
|
-
- **ID**: The URL of the issue.
|
|
18
|
-
- **Text**: A formatted string containing the issue's identifier, title, URL, and description.
|
|
19
|
-
- **Metadata**: Additional metadata (currently empty but can be extended).
|
|
20
|
-
|
|
21
|
-
### Embedding Generation
|
|
22
|
-
|
|
23
|
-
- **Minimal Embedding**: The plugin creates minimal embeddings that encapsulate essential information about each Linear issue. These embeddings can be used to enrich chat interactions with relevant issue details, making it easier for team members to discuss and resolve issues directly within the chat environment.
|
|
24
|
-
|
|
25
|
-
## Environment Variables
|
|
26
|
-
|
|
27
|
-
To function correctly, the Linear Plugin requires the following environment variable to be set:
|
|
28
|
-
|
|
29
|
-
- **LINEAR_API_KEY**: This API key is used to authenticate requests to the Linear API. Ensure that this environment variable is set with a valid Linear API key before using the plugin.
|
|
30
|
-
|
|
31
|
-
## Usage
|
|
32
|
-
|
|
33
|
-
The Linear Plugin can be integrated into chat applications to provide real-time issue tracking and context. When a user includes a Linear issue URL in their message, the plugin automatically detects the URL, retrieves the issue details, and embeds the information into the chat. This allows team members to quickly access and discuss relevant issue details without leaving the chat environment.
|
|
34
|
-
|
|
35
|
-
By leveraging the Linear Plugin, teams can improve their workflow efficiency, enhance communication, and maintain better visibility over their project management tasks directly within their chat applications.
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# Notion Plugin Executive Summary
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
The Notion Plugin is designed to enhance chat interactions by integrating Notion content directly into conversations. It detects Notion URLs within user inputs, retrieves the corresponding Notion pages and their child blocks, and generates embeddings that can be used to provide additional context in chats. This plugin is particularly useful for users who frequently reference Notion documents and wish to seamlessly incorporate their content into discussions.
|
|
6
|
-
|
|
7
|
-
## Key Features
|
|
8
|
-
|
|
9
|
-
### Input Detection and Resolution
|
|
10
|
-
|
|
11
|
-
- **URL Extraction**: The plugin scans user inputs for Notion URLs using a regular expression pattern. It identifies and extracts URLs that point to Notion pages.
|
|
12
|
-
- **Page Retrieval**: For each detected URL, the plugin retrieves the corresponding Notion page and its child blocks. This includes handling nested blocks up to a specified depth.
|
|
13
|
-
|
|
14
|
-
### Contextual Enhancements
|
|
15
|
-
|
|
16
|
-
- **Content Embedding**: The plugin generates embeddings from the retrieved Notion pages and their child blocks. These embeddings include the text content and metadata, which can be used to enrich chat interactions with relevant information from Notion.
|
|
17
|
-
- **Hierarchical Data Handling**: The plugin processes hierarchical data structures within Notion pages, ensuring that nested blocks and child pages are included in the embeddings.
|
|
18
|
-
|
|
19
|
-
### Embedding Generation
|
|
20
|
-
|
|
21
|
-
- **Minimal Embeddings**: The plugin creates minimal embeddings that encapsulate the essential content and metadata of Notion pages and blocks. These embeddings are structured to facilitate easy integration into chat systems.
|
|
22
|
-
- **Comprehensive Data**: The embeddings include text content extracted from various block types within Notion, ensuring a comprehensive representation of the page's information.
|
|
23
|
-
|
|
24
|
-
## Environment Variables
|
|
25
|
-
|
|
26
|
-
To function correctly, the Notion Plugin requires the following environment variable to be set:
|
|
27
|
-
|
|
28
|
-
- **NOTION_TOKEN**: This token is used to authenticate requests to the Notion API. It must be set in the environment where the plugin is running.
|
|
29
|
-
|
|
30
|
-
## Usage
|
|
31
|
-
|
|
32
|
-
The Notion Plugin can be used in various scenarios where integrating Notion content into chat interactions is beneficial. For example:
|
|
33
|
-
|
|
34
|
-
- **Customer Support**: Support agents can quickly reference and share relevant Notion documentation with customers during chat sessions.
|
|
35
|
-
- **Team Collaboration**: Team members can embed and discuss specific Notion pages within chat platforms, facilitating more informed and context-rich conversations.
|
|
36
|
-
- **Knowledge Management**: Users can pull in detailed information from Notion pages to answer questions or provide explanations in chat environments.
|
|
37
|
-
|
|
38
|
-
By leveraging the Notion Plugin, users can enhance their chat interactions with rich, contextual information from their Notion workspace, improving communication efficiency and effectiveness.
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
# Plugin Service Executive Summary
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
The Plugin Service is a comprehensive system designed to enhance chat interactions by detecting and resolving various types of inputs, adding contextual information, and generating embeddings. This service integrates multiple specialized plugins, each contributing unique functionalities to improve user experience and productivity.
|
|
6
|
-
|
|
7
|
-
## Input Detection and Resolution
|
|
8
|
-
|
|
9
|
-
The Plugin Service is capable of detecting and resolving a wide range of inputs through its diverse set of plugins. Each plugin is tailored to handle specific types of data and interactions:
|
|
10
|
-
|
|
11
|
-
- **VimPlugin**: Enhances text editing capabilities with Vim-like commands.
|
|
12
|
-
- **GitHubPlugin**: Manages GitHub repositories, issues, and pull requests.
|
|
13
|
-
- **AsanaPlugin**: Integrates with Asana for task and project management.
|
|
14
|
-
- **LinearPlugin**: Connects with Linear for issue tracking and project management.
|
|
15
|
-
- **JiraPlugin**: Interfaces with Jira for comprehensive project tracking.
|
|
16
|
-
- **NotionPlugin**: Syncs with Notion for note-taking and project organization.
|
|
17
|
-
- **DownloaderPlugin**: Facilitates downloading of files and resources.
|
|
18
|
-
- **FigmaPlugin**: Integrates with Figma for design collaboration.
|
|
19
|
-
- **LanguagePlugin**: Provides language processing capabilities.
|
|
20
|
-
- **EmbeddingPlugin**: Generates embeddings for various types of data.
|
|
21
|
-
|
|
22
|
-
## Contextual Enhancements
|
|
23
|
-
|
|
24
|
-
The Plugin Service adds valuable context to chat interactions by leveraging the capabilities of its integrated plugins. For example:
|
|
25
|
-
|
|
26
|
-
- **GitHubPlugin** can provide context about recent commits, open issues, and pull requests.
|
|
27
|
-
- **AsanaPlugin** and **LinearPlugin** can offer insights into task statuses and project timelines.
|
|
28
|
-
- **JiraPlugin** can deliver updates on project progress and issue resolutions.
|
|
29
|
-
- **NotionPlugin** can share notes and project documentation.
|
|
30
|
-
- **FigmaPlugin** can present design updates and feedback.
|
|
31
|
-
|
|
32
|
-
These contextual enhancements ensure that users have access to relevant information directly within their chat environment, streamlining workflows and improving decision-making.
|
|
33
|
-
|
|
34
|
-
## Embedding Generation
|
|
35
|
-
|
|
36
|
-
The Plugin Service supports the generation of embeddings through the **EmbeddingPlugin**. Embeddings are vector representations of data that can be used for various purposes, such as:
|
|
37
|
-
|
|
38
|
-
- **Text Embeddings**: Representing textual data in a numerical format for natural language processing tasks.
|
|
39
|
-
- **Image Embeddings**: Converting visual data into vectors for image recognition and analysis.
|
|
40
|
-
- **Custom Embeddings**: Generating embeddings for domain-specific data to enhance search and recommendation systems.
|
|
41
|
-
|
|
42
|
-
These embeddings enable advanced data processing and machine learning applications, making the Plugin Service a powerful tool for data-driven tasks.
|
|
43
|
-
|
|
44
|
-
## Environment Variables
|
|
45
|
-
|
|
46
|
-
To ensure the proper functioning of the Plugin Service, certain environment variables need to be set. These variables are used to configure the plugins and provide necessary credentials and settings. The required environment variables include:
|
|
47
|
-
|
|
48
|
-
- **GITHUB_TOKEN**: Required for the **GitHubPlugin** to authenticate and interact with GitHub APIs.
|
|
49
|
-
- **ASANA_TOKEN**: Required for the **AsanaPlugin** to access Asana's API.
|
|
50
|
-
- **LINEAR_API_KEY**: Required for the **LinearPlugin** to connect with Linear's services.
|
|
51
|
-
- **JIRA_API_TOKEN**: Required for the **JiraPlugin** to authenticate with Jira.
|
|
52
|
-
- **NOTION_API_KEY**: Required for the **NotionPlugin** to interact with Notion's API.
|
|
53
|
-
- **FIGMA_API_KEY**: Required for the **FigmaPlugin** to access Figma's API.
|
|
54
|
-
|
|
55
|
-
These environment variables should be set in the system where the Plugin Service is deployed to ensure seamless integration and functionality.
|
|
56
|
-
|
|
57
|
-
## Conclusion
|
|
58
|
-
|
|
59
|
-
The Plugin Service is a versatile and powerful system that enhances chat interactions by detecting and resolving various inputs, adding contextual information, and generating embeddings. By integrating with multiple specialized plugins, it provides a comprehensive solution for improving productivity and user experience in chat environments. Proper configuration of environment variables is essential for the optimal performance of the service.
|