diff --git a/localization/v2.5.x/site/en/getstarted/run-milvus-docker/install_standalone-windows.json b/localization/v2.5.x/site/en/getstarted/run-milvus-docker/install_standalone-windows.json index b429bfc59..efdd6c755 100644 --- a/localization/v2.5.x/site/en/getstarted/run-milvus-docker/install_standalone-windows.json +++ b/localization/v2.5.x/site/en/getstarted/run-milvus-docker/install_standalone-windows.json @@ -1 +1 @@ -{"codeList":["C:\\>Invoke-WebRequest https://github.com/milvus-io/milvus/blob/master/scripts/standalone_embed.bat -OutFile standalone.bat​\n\n","C:\\>standalone.bat start​\nWait for Milvus starting...​\nStart successfully.​\nTo change the default Milvus configuration, edit user.yaml and restart the service.​\n\n","# Stop Milvus​\nC:\\>standalone.bat stop​\nStop successfully.​\n​\n# Delete Milvus container​\nC:\\>standalone.bat delete​\nDelete Milvus container successfully. # Container has been removed.​\nDelete successfully. # Data has been removed.​\n\n","C:\\>wsl --install​\nUbuntu already installed.​\nStarting Ubuntu...​\n\n","# Download the installation script​\n$ curl -sfL https://raw.githubusercontent.com/milvus-io/milvus/master/scripts/standalone_embed.sh -o standalone_embed.sh​\n​\n# Start the Docker container​\n$ bash standalone_embed.sh start​\n\n","$ bash standalone_embed.sh start​\nWait for Milvus Starting...​\nStart successfully.​\nTo change the default Milvus configuration, add your settings to the user.yaml file and then restart the service.​\n\n","# Stop Milvus​\n$ bash standalone_embed.sh stop​\nStop successfully.​\n​\n# Delete Milvus data​\n$ bash standalone_embed.sh stop​\nDelete Milvus container successfully.​\nDelete successfully.​\n\n","# Download the configuration file and rename it as docker-compose.yml​\nC:\\>Invoke-WebRequest https://github.com/milvus-io/milvus/releases/download/v2.4.15/milvus-standalone-docker-compose.yml -OutFile docker-compose.yml​\n​\n# Start Milvus​\nC:\\>docker compose up -d​\nCreating milvus-etcd ... done​\nCreating milvus-minio ... done​\nCreating milvus-standalone ... done​\n\n","C:\\>wsl --install​\nUbuntu already installed.​\nStarting Ubuntu...​\n\n","$ wget https://github.com/milvus-io/milvus/releases/download/v2.4.17/milvus-standalone-docker-compose.yml -O docker-compose.yml​\n\n","$ sudo docker compose up -d​\n​\nCreating milvus-etcd ... done​\nCreating milvus-minio ... done​\nCreating milvus-standalone ... done​\n\n","C:\\>net start com.docker.service​\nThe Docker for Windows Service service is starting.​\nThe Docker for Windows Service service was started successfully.​\n\n","C:\\>wsl --update​\nChecking for updates.​\nThe most recent version of Windows Subsystem for Linux is already installed.​\n\n","C:\\>cd \"C:\\Program Files\\Docker\\Docker\"​\nC:\\Program Files\\Docker\\Docker>.\\DockerCli.exe -SwitchDaemon​\nSwitching to windows engine: Post \"http://ipc/engine/switch\": open \\\\.\\pipe\\dockerBackendApiServer: The system cannot find the file specified.​\n\n"],"headingContent":"Run Milvus in Docker (Windows)","anchorList":[{"label":"Run Milvus in Docker (Windows)","href":"Run-Milvus-in-Docker-Windows","type":1,"isActive":false},{"label":"Prerequisites​","href":"Prerequisites​","type":2,"isActive":false},{"label":"Run Milvus in Docker​","href":"Run-Milvus-in-Docker​","type":2,"isActive":false},{"label":"Run Milvus with Docker Compose​","href":"Run-Milvus-with-Docker-Compose​","type":2,"isActive":false},{"label":"FAQs​","href":"FAQs​","type":2,"isActive":false},{"label":"What's next","href":"Whats-next","type":2,"isActive":false}]} \ No newline at end of file +{"codeList":["C:\\>Invoke-WebRequest https://raw.githubusercontent.com/milvus-io/milvus/refs/heads/master/scripts/standalone_embed.bat -OutFile standalone.bat​\n\n","C:\\>standalone.bat start​\nWait for Milvus starting...​\nStart successfully.​\nTo change the default Milvus configuration, edit user.yaml and restart the service.​\n\n","# Stop Milvus​\nC:\\>standalone.bat stop​\nStop successfully.​\n​\n# Delete Milvus container​\nC:\\>standalone.bat delete​\nDelete Milvus container successfully. # Container has been removed.​\nDelete successfully. # Data has been removed.​\n\n","C:\\>wsl --install​\nUbuntu already installed.​\nStarting Ubuntu...​\n\n","# Download the installation script​\n$ curl -sfL https://raw.githubusercontent.com/milvus-io/milvus/master/scripts/standalone_embed.sh -o standalone_embed.sh​\n​\n# Start the Docker container​\n$ bash standalone_embed.sh start​\n\n","$ bash standalone_embed.sh start​\nWait for Milvus Starting...​\nStart successfully.​\nTo change the default Milvus configuration, add your settings to the user.yaml file and then restart the service.​\n\n","# Stop Milvus​\n$ bash standalone_embed.sh stop​\nStop successfully.​\n​\n# Delete Milvus data​\n$ bash standalone_embed.sh stop​\nDelete Milvus container successfully.​\nDelete successfully.​\n\n","# Download the configuration file and rename it as docker-compose.yml​\nC:\\>Invoke-WebRequest https://github.com/milvus-io/milvus/releases/download/v2.4.15/milvus-standalone-docker-compose.yml -OutFile docker-compose.yml​\n​\n# Start Milvus​\nC:\\>docker compose up -d​\nCreating milvus-etcd ... done​\nCreating milvus-minio ... done​\nCreating milvus-standalone ... done​\n\n","C:\\>wsl --install​\nUbuntu already installed.​\nStarting Ubuntu...​\n\n","$ wget https://github.com/milvus-io/milvus/releases/download/v2.4.17/milvus-standalone-docker-compose.yml -O docker-compose.yml​\n\n","$ sudo docker compose up -d​\n​\nCreating milvus-etcd ... done​\nCreating milvus-minio ... done​\nCreating milvus-standalone ... done​\n\n","C:\\>net start com.docker.service​\nThe Docker for Windows Service service is starting.​\nThe Docker for Windows Service service was started successfully.​\n\n","C:\\>wsl --update​\nChecking for updates.​\nThe most recent version of Windows Subsystem for Linux is already installed.​\n\n","C:\\>cd \"C:\\Program Files\\Docker\\Docker\"​\nC:\\Program Files\\Docker\\Docker>.\\DockerCli.exe -SwitchDaemon​\nSwitching to windows engine: Post \"http://ipc/engine/switch\": open \\\\.\\pipe\\dockerBackendApiServer: The system cannot find the file specified.​\n\n"],"headingContent":"Run Milvus in Docker (Windows)","anchorList":[{"label":"Run Milvus in Docker (Windows)","href":"Run-Milvus-in-Docker-Windows","type":1,"isActive":false},{"label":"Prerequisites​","href":"Prerequisites​","type":2,"isActive":false},{"label":"Run Milvus in Docker​","href":"Run-Milvus-in-Docker​","type":2,"isActive":false},{"label":"Run Milvus with Docker Compose​","href":"Run-Milvus-with-Docker-Compose​","type":2,"isActive":false},{"label":"FAQs​","href":"FAQs​","type":2,"isActive":false},{"label":"What's next","href":"Whats-next","type":2,"isActive":false}]} \ No newline at end of file diff --git a/localization/v2.5.x/site/en/getstarted/run-milvus-docker/install_standalone-windows.md b/localization/v2.5.x/site/en/getstarted/run-milvus-docker/install_standalone-windows.md index 8f1593a98..f552bed64 100644 --- a/localization/v2.5.x/site/en/getstarted/run-milvus-docker/install_standalone-windows.md +++ b/localization/v2.5.x/site/en/getstarted/run-milvus-docker/install_standalone-windows.md @@ -61,7 +61,7 @@ title: Run Milvus in Docker (Linux)
  1. Open Docker Desktop in administrator mode by right-clicking and selecting Run as administrator.​

  2. Download the installation script and save it as standalone.bat.​

    -
    C:\>Invoke-WebRequest https://github.com/milvus-io/milvus/blob/master/scripts/standalone_embed.bat -OutFile standalone.bat​
    +
    C:\>Invoke-WebRequest https://raw.githubusercontent.com/milvus-io/milvus/refs/heads/master/scripts/standalone_embed.bat -OutFile standalone.bat​
     
     
  3. Run the downloaded script to start Milvus as a Docker container.​

    diff --git a/localization/v2.5.x/site/en/integrations/integrate_with_langfuse.json b/localization/v2.5.x/site/en/integrations/integrate_with_langfuse.json index 96c507101..e45452a4e 100644 --- a/localization/v2.5.x/site/en/integrations/integrate_with_langfuse.json +++ b/localization/v2.5.x/site/en/integrations/integrate_with_langfuse.json @@ -1 +1 @@ -{"codeList":["$ pip install llama-index langfuse llama-index-vector-stores-milvus --upgrade\n","import os\n\n# Get keys for your project from the project settings page\n# https://cloud.langfuse.com\nos.environ[\"LANGFUSE_PUBLIC_KEY\"] = \"\"\nos.environ[\"LANGFUSE_SECRET_KEY\"] = \"\"\nos.environ[\"LANGFUSE_HOST\"] = \"https://cloud.langfuse.com\" # 🇪🇺 EU region\n# os.environ[\"LANGFUSE_HOST\"] = \"https://us.cloud.langfuse.com\" # 🇺🇸 US region\n\n# Your openai key\nos.environ[\"OPENAI_API_KEY\"] = \"\"\n","from llama_index.core import Settings\nfrom llama_index.core.callbacks import CallbackManager\nfrom langfuse.llama_index import LlamaIndexCallbackHandler\n \nlangfuse_callback_handler = LlamaIndexCallbackHandler()\nSettings.callback_manager = CallbackManager([langfuse_callback_handler])\n","from llama_index.core import Document\n\ndoc1 = Document(text=\"\"\"\nMaxwell \"Max\" Silverstein, a lauded movie director, screenwriter, and producer, was born on October 25, 1978, in Boston, Massachusetts. A film enthusiast from a young age, his journey began with home movies shot on a Super 8 camera. His passion led him to the University of Southern California (USC), majoring in Film Production. Eventually, he started his career as an assistant director at Paramount Pictures. Silverstein's directorial debut, “Doors Unseen,” a psychological thriller, earned him recognition at the Sundance Film Festival and marked the beginning of a successful directing career.\n\"\"\")\ndoc2 = Document(text=\"\"\"\nThroughout his career, Silverstein has been celebrated for his diverse range of filmography and unique narrative technique. He masterfully blends suspense, human emotion, and subtle humor in his storylines. Among his notable works are \"Fleeting Echoes,\" \"Halcyon Dusk,\" and the Academy Award-winning sci-fi epic, \"Event Horizon's Brink.\" His contribution to cinema revolves around examining human nature, the complexity of relationships, and probing reality and perception. Off-camera, he is a dedicated philanthropist living in Los Angeles with his wife and two children.\n\"\"\")\n","# Example index construction + LLM query\n\nfrom llama_index.core import VectorStoreIndex\nfrom llama_index.core import StorageContext\nfrom llama_index.vector_stores.milvus import MilvusVectorStore\n\n\nvector_store = MilvusVectorStore(\n uri=\"tmp/milvus_demo.db\", dim=1536, overwrite=False\n)\nstorage_context = StorageContext.from_defaults(vector_store=vector_store)\n\nindex = VectorStoreIndex.from_documents(\n [doc1,doc2], storage_context=storage_context\n)\n","# Query\nresponse = index.as_query_engine().query(\"What did he do growing up?\")\nprint(response)\n","# Chat\nresponse = index.as_chat_engine().chat(\"What did he do growing up?\")\nprint(response)\n","# As we want to immediately see result in Langfuse, we need to flush the callback handler\nlangfuse_callback_handler.flush()\n"],"headingContent":"Cookbook - LlamaIndex & Milvus Integration","anchorList":[{"label":"Cookbook - LlamaIndex & Milvus Integration","href":"Cookbook---LlamaIndex--Milvus-Integration","type":1,"isActive":false},{"label":"Setup","href":"Setup","type":2,"isActive":false},{"label":"Index using Milvus Lite","href":"Index-using-Milvus-Lite","type":2,"isActive":false},{"label":"Query","href":"Query","type":2,"isActive":false},{"label":"Explore traces in Langfuse","href":"Explore-traces-in-Langfuse","type":2,"isActive":false},{"label":"Interested in more advanced features?","href":"Interested-in-more-advanced-features","type":2,"isActive":false}]} \ No newline at end of file +{"codeList":["$ pip install llama-index langfuse llama-index-vector-stores-milvus --upgrade\n","import os\n\n# Get keys for your project from the project settings page\n# https://cloud.langfuse.com\nos.environ[\"LANGFUSE_PUBLIC_KEY\"] = \"\"\nos.environ[\"LANGFUSE_SECRET_KEY\"] = \"\"\nos.environ[\"LANGFUSE_HOST\"] = \"https://cloud.langfuse.com\" # 🇪🇺 EU region\n# os.environ[\"LANGFUSE_HOST\"] = \"https://us.cloud.langfuse.com\" # 🇺🇸 US region\n\n# Your openai key\nos.environ[\"OPENAI_API_KEY\"] = \"\"\n","from llama_index.core import Settings\nfrom llama_index.core.callbacks import CallbackManager\nfrom langfuse.llama_index import LlamaIndexCallbackHandler\n \nlangfuse_callback_handler = LlamaIndexCallbackHandler()\nSettings.callback_manager = CallbackManager([langfuse_callback_handler])\n","from llama_index.core import Document\n\ndoc1 = Document(text=\"\"\"\nMaxwell \"Max\" Silverstein, a lauded movie director, screenwriter, and producer, was born on October 25, 1978, in Boston, Massachusetts. A film enthusiast from a young age, his journey began with home movies shot on a Super 8 camera. His passion led him to the University of Southern California (USC), majoring in Film Production. Eventually, he started his career as an assistant director at Paramount Pictures. Silverstein's directorial debut, “Doors Unseen,” a psychological thriller, earned him recognition at the Sundance Film Festival and marked the beginning of a successful directing career.\n\"\"\")\ndoc2 = Document(text=\"\"\"\nThroughout his career, Silverstein has been celebrated for his diverse range of filmography and unique narrative technique. He masterfully blends suspense, human emotion, and subtle humor in his storylines. Among his notable works are \"Fleeting Echoes,\" \"Halcyon Dusk,\" and the Academy Award-winning sci-fi epic, \"Event Horizon's Brink.\" His contribution to cinema revolves around examining human nature, the complexity of relationships, and probing reality and perception. Off-camera, he is a dedicated philanthropist living in Los Angeles with his wife and two children.\n\"\"\")\n","# Example index construction + LLM query\n\nfrom llama_index.core import VectorStoreIndex\nfrom llama_index.core import StorageContext\nfrom llama_index.vector_stores.milvus import MilvusVectorStore\n\n\nvector_store = MilvusVectorStore(\n uri=\"tmp/milvus_demo.db\", dim=1536, overwrite=False\n)\nstorage_context = StorageContext.from_defaults(vector_store=vector_store)\n\nindex = VectorStoreIndex.from_documents(\n [doc1,doc2], storage_context=storage_context\n)\n","# Query\nresponse = index.as_query_engine().query(\"What did he do growing up?\")\nprint(response)\n","# Chat\nresponse = index.as_chat_engine().chat(\"What did he do growing up?\")\nprint(response)\n","# As we want to immediately see result in Langfuse, we need to flush the callback handler\nlangfuse_callback_handler.flush()\n"],"headingContent":"Using Langfuse to Trace Queries in RAG","anchorList":[{"label":"Using Langfuse to Trace Queries in RAG","href":"Using-Langfuse-to-Trace-Queries-in-RAG","type":1,"isActive":false},{"label":"Setup","href":"Setup","type":2,"isActive":false},{"label":"Index using Milvus Lite","href":"Index-using-Milvus-Lite","type":2,"isActive":false},{"label":"Query","href":"Query","type":2,"isActive":false},{"label":"Explore traces in Langfuse","href":"Explore-traces-in-Langfuse","type":2,"isActive":false},{"label":"Interested in more advanced features?","href":"Interested-in-more-advanced-features","type":2,"isActive":false}]} \ No newline at end of file diff --git a/localization/v2.5.x/site/en/integrations/integrate_with_langfuse.md b/localization/v2.5.x/site/en/integrations/integrate_with_langfuse.md index c46a19e9e..bc6aba8f9 100644 --- a/localization/v2.5.x/site/en/integrations/integrate_with_langfuse.md +++ b/localization/v2.5.x/site/en/integrations/integrate_with_langfuse.md @@ -3,9 +3,9 @@ id: integrate_with_langfuse.md summary: >- This is a simple cookbook that demonstrates how to use the LlamaIndex Langfuse integration. It uses Milvus Lite to store the documents and Query. -title: Cookbook LlamaIndex & Milvus Integration +title: Using Langfuse to Evaluate RAG Quality --- -

    Cookbook - LlamaIndex & Milvus Integration

    Open In Colab

    -

    This is a simple cookbook that demonstrates how to use the LlamaIndex Langfuse integration. It uses Milvus Lite to store the documents and Query.

    +

    This is a simple cookbook that demonstrates how to use Langfuse to trace your queries in RAG. The RAG pipeline is implemented with LlamaIndex and Milvus Lite to store and retrieve the documents.

    +

    In this quickstart, we’ll show you how to set up a LlamaIndex application using Milvus Lite as the vector store. We’ll also show you how to use the Langfuse LlamaIndex integration to trace your application.

    +

    Langfuse is an open-source LLM engineering platform that helps teams collaboratively debug, analyze, and iterate on their LLM applications. All platform features are natively integrated to accelerate the development workflow.

    Milvus Lite is the lightweight version of Milvus, an open-source vector database that powers AI applications with vector embeddings and similarity search.

    Setup

    Full text search is a feature that retrieves documents containing specific terms or phrases in text datasets, then ranking the results based on relevance. This feature overcomes semantic search limitations, which might overlook precise terms, ensuring you receive the most accurate and contextually relevant results. Additionally, it simplifies vector searches by accepting raw text input, automatically converting your text data into sparse embeddings without the need to manually generate vector embeddings.​

    +

    Full text search is a feature that retrieves documents containing specific terms or phrases in text datasets, then ranks the results based on relevance. This feature overcomes the limitations of semantic search, which might overlook precise terms, ensuring you receive the most accurate and contextually relevant results. Additionally, it simplifies vector searches by accepting raw text input, automatically converting your text data into sparse embeddings without the need to manually generate vector embeddings.​

    Using the BM25 algorithm for relevance scoring, this feature is particularly valuable in retrieval-augmented generation (RAG) scenarios, where it prioritizes documents that closely match specific search terms.​

      @@ -47,11 +47,11 @@ summary: >-

      Full text search simplifies the process of text-based searching by eliminating the need for manual embedding. This feature operates through the following workflow:​

        -
      1. Text input: You insert raw text documents or provide query text without any need for manual embedding.​

      2. -
      3. Text analysis: Milvus uses an analyzer to tokenize input text into individual, searchable terms.​ For more information on analyzers, refer to Analyzer Overview.

      4. +
      5. Text input: You insert raw text documents or provide query text without needing to manually embed them.​

      6. +
      7. Text analysis: Milvus uses an analyzer to tokenize the input text into individual, searchable terms.​ For more information on analyzers, refer to Analyzer Overview.

      8. Function processing: The built-in function receives tokenized terms and converts them into sparse vector representations.​

      9. Collection store: Milvus stores these sparse embeddings in a collection for efficient retrieval.​

      10. -
      11. BM25 scoring: During a search, Milvus applies the BM25 algorithm to calculate scores for the stored documents and ranks matched results based on relevance to the query text.​

      12. +
      13. BM25 scoring: During a search, Milvus applies the BM25 algorithm to calculate scores for the stored documents and ranks matched results based on their relevance to the query text.​