에이전틱 AI 애플리케이션

Couchbase + Dify: AI 워크플로우를 위한 강력한 벡터 기능

We’re excited to announce the new integration between 카우치베이스 그리고 Dify.ai, bringing Couchbase’s robust vector database capabilities into Dify’s streamlined LLMops ecosystem. Dify empowers teams with a no-code solution to build, manage, and deploy AI-driven workflows efficiently. Now, with Couchbase support, users can leverage Couchbase’s high-performance vector storage for rapid, accurate knowledge retrieval within their LLM-powered applications.

Dify.ai is an innovative platform that simplifies the process of building AI-native applications. It provides developers with a comprehensive suite of tools for prompt engineering, model fine-tuning, and application deployment, making it easier than ever to harness the power of large language models (LLMs) in practical applications.

In the following sections, we’ll explore some details of this integration and show how it can revolutionize building AI-native applications with Couchbase and Dify.ai.

Installing Dify with Couchbase

The following instructions are based on Dify’s self-hosted Docker Compose installation guide. Ensure the prerequisites on that guide are met.

  1. Clone the Dify repository

  2. Navigate to the Docker directory and configure the environment

    IMPORTANT – in the duplicated docker/.env file, set:

  3. Launch Dify

  4. Access DifyAccess administrator initialization page to set up the admin account:

    Dify web interface address:

Instructions for upgrading Dify versions can be found 여기, and more details about Dify docker deployment can be found in the docker README.

Adding knowledge and generating embeddings

An 임베딩 is a vector representation of text, enabling the “Knowledge” feature to understand and process the content.

  1. Access the Dify web interface
  2. Add model provider. This is required to generate embeddings:
    • Click on the avatar in the top right corner to expand the dropdown
    • Select Settings then Model Provider
    • Click the Setup button for the model provider you’d like to add. Avoid clicking “Add Model”, as this forces you to add each model one by one
    • Enter the required API keys, and click Save
    • Default system models can also be set from this window, but are not required
  3. Add knowledge:
    • Click on the Knowledge tab
    • Select Create Knowledge
    • Follow steps to upload a file
    • Select the defaults for Text Preprocessing and Cleaning
    • 클릭 Save and Process
  4. Test Retrieval:
    • After the document has completed processing, click Go to document
    • Select Retrieval Testing from the sidebar
    • Experiment with various text to test the hitting effect of the Knowledge

결론

The Couchbase and Dify integration makes it easier to build AI-native applications that harness high-performance vector retrieval for knowledge-intensive tasks. This powerful combination empowers developers to create sophisticated, responsive AI solutions with minimal setup, paving the way for more accessible and scalable AI applications.

Next steps

Happy coding!

이 기사 공유하기

작가

Elliot Scribner is a Software Engineer on the Developer Experience and Ecosystem team at Couchbase. With substantial experience across several languages and technologies, including Full Stack Node.js (TypeScript) and Python, Elliot has led the development of multiple integration projects that have enhanced Couchbase’s developer offerings. He collaborates cross-functionally to ensure seamless development and deliver successful integrations. Elliot is passionate about empowering developers through robust tools and intuitive ecosystems.

댓글 남기기

카우치베이스 카펠라를 시작할 준비가 되셨나요?

개발 시작하기

NoSQL을 탐색하고, 리소스를 찾아보고, 튜토리얼을 시작하려면 개발자 포털을 확인하세요.

카펠라 프리 사용하기

단 몇 번의 클릭으로 카우치베이스(Couchbase)를 직접 체험해 보세요. Capella DBaaS는 시작하기 가장 쉽고 빠른 방법입니다.

연락해

Couchbase 제품군에 대해 더 알고 싶으신가요? 저희가 도와드리겠습니다.