1.4.5 • Published 8 months ago

cap-llm-plugin v1.4.5

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
8 months ago

CAP LLM Plugin

CAP LLM Plugin helps developers create tailored Generative AI based CAP applications:

  1. Without exposing confidential data to LLM by anonymizing sensitive data leveraging SAP HANA Cloud Data Anonymization.
  2. Seamlessly generate vector embeddings via SAP AI Core.
  3. Easily retrieve Chat Completion response via SAP AI Core.
  4. Efforlessly perform similarity search via SAP HANA Cloud Vector engine.
  5. Simplified single RAG (retrieval-augmented generation) retrieval method powered by SAP AI Core and SAP HANA Cloud Vector Engine.

✔️ Anonymization Features

FeatureDetails
Seamlessly anonymize sensitive data using a variety of SAP HANA Cloud's anonymization capabilitiesEffortlessly anonymize sensitive data within a CAP application by employing a single @anonymize annotation using a diverse range of SAP HANA Cloud's anonymization algorithms, including but not limited to: k-Anonymity l-Diversity Differential Privacy
Effortlessly replace the anonymized data within the LLM response with genuine informationGiven that the data provided to the LLM consists of anonymized information, the CAP LLM plugin ensures a seamless replacement of anonymized content within the LLM response with the corresponding authentic data.

🎯 LLM Access Layer Features

FeatureDetails
Embedding generation via SAP AI CoreEasily connect to embedding models via SAP AI Core and generate embeddings seamlessly
Similarity searchLeverage the SAP HANA Cloud's Vector engine to perform similarity search via CAP LLM Plugin
Chat LLM Access via SAP AI CoreSimple access to LLM models via SAP AI Core with simplified method for chat completion
Streamlining RAG retrievalSingle method to streamline the entire RAG retrieval process leveraging SAP AI Core and SAP HANA Cloud Vector Engine

📚 Samples and documentation

For API documentation of CAP LLM Plugin, check the doc folder under the Code tab of this page or go to SAP Samples as mentioned below.

For sample use cases leveraging CAP LLM Plugin, refer to SAP Samples.

❗ Version Upgrade Notice

From 1.3.* to 1.4.2 (function signature changed for following methods, version not recommended):
getEmbedding
getChatCompletion
getRagResponse

From 1.3.* to 1.4.4 and above(backwards compatible, new methods to support more models):
No change required unless you want to use new methods supporting new models as mentioned in API document:
(old)getEmbedding -> getEmbeddingWithConfig
(old)getChatCompletion -> getChatCompletionWithConfig
(old)getRagResponse -> getRagResponseWithConfig

🙌 Support and Contact

This project is provided "as-is" with no expectation for major changes or support.

1.4.5

8 months ago

1.4.4

10 months ago

1.4.3

10 months ago

1.4.2

11 months ago

1.4.1

11 months ago

1.4.0

11 months ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.0

2 years ago

1.0.0

2 years ago

1.1.0

2 years ago