Skip to content

Latest commit

 

History

History
80 lines (50 loc) · 4.13 KB

File metadata and controls

80 lines (50 loc) · 4.13 KB

Introduction

中文

This is an out-of-the-box service interface that satisfies personal use of the knowledge base. This project is based on Microsoft's kernel-memory, a multimodal AI service that is dedicated to efficient indexing of datasets through a custom continuous data mixing pipeline, and supports secondary development on retrieval enhancement generation (RAG), synthetic memory, hint engineering, and custom semantic memory processing.

image image

For more detailed information about Km, please see Microsoft Kernel Memory

GitHub issues GitHub stars License

1. Explanation of various responsibilities and usage requirements

  1. For users, we have achieved data isolation, whether it is uploaded data or conversation data, but not including data backup, so do not use this interface in a production environment.
  2. For interface use, we do not recommend that you lend or open your key to other platforms. Note that the key cannot be reset.
  3. The uploaded data should not contain the following content: violence, hatred, sex and self-harm, anti-party and anti-government speech, and should not contain any form of feminist and LGBT content. RAI follows responsible AI.
  4. Regarding the number of conversations and the size of uploaded data, it is said that it cannot be adjusted. The project itself uses multiple Azure paid services such as Azure AI Search, Azure Smart Documents, and Azure Blob, which will increase costs.
  5. During the use process, I hope everyone will extract more opinions, and I also hope that everyone will tell us in time to recycle the account when it is not used for a long time.
  6. The platform only provides an enabling interface, which requires front-end projects to support or carry out front-end development.

2. Instructions

  1. First log in to the registration website http://cq.ath.cx:8888/

  2. For interface description, please refer to the document

  3. Example of use

    1. In FastGPT 屏幕截图 2024-11-21 231321

    屏幕截图 2024-11-21 231242

    屏幕截图 2024-11-21 231310

    251c1672f5578ff28558438f41cd93c

    1. In Copilot

      Generate API plugins from existing APIs for intelligent Microsoft 365 Copilot® projects

    2. In SK projects

      https://github.com/microsoft/kernel-memory/blob/main/examples/302-dotnet-sk-km-chat/Program.cs

5. Code Examples

The user tag will be bound to the user pipeline, and the pipeline will be randomly generated when uploading files.

C#

#r "nuget: Microsoft.KernelMemory.WebClient"

var memory = new MemoryWebClient("http://cq.ath.cx:8881/api/upload"); // <== URL of KM web service

// Import a file
await memory.ImportDocumentAsync("meeting-transcript.docx");

Python

import requests

# Files to import
files = {
    "file1": ("business-plan.docx", open("business-plan.docx", "rb")),
}

response = requests.post("http://cq.ath.cx:8881/api/upload", files=files, data=data)

三、声明

  1. This project is free of charge

  2. This project was developed and computing services were provided by Chongqing Exmand Technology Co., Ltd. [https://www.xmindai.cn/]

logo