# Not able to enable the feature rag\_pipeline\_feature\_enabled in ml plugin

**URL:** <https://forum.opensearch.org/t/not-able-to-enable-the-feature-rag-pipeline-feature-enabled-in-ml-plugin/17277>\
**Category:** Machine Learning\
**Created:** [December 29, 2023, 1:40pm UTC](https://forum.opensearch.org/t/not-able-to-enable-the-feature-rag-pipeline-feature-enabled-in-ml-plugin/17277 "2023-12-29T13:40:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramda](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@ramda](https://forum.opensearch.org/u/ramda)\
**Post date:** [December 29, 2023, 1:40pm UTC](https://forum.opensearch.org/t/not-able-to-enable-the-feature-rag-pipeline-feature-enabled-in-ml-plugin/17277/1 "2023-12-29T13:40:48Z")

</div>

Hi All,

I am not able to enable the RAG feature. I have run this below API successfully

```auto
PUT /_cluster/settings
{
  "persistent": {"plugins.ml_commons.rag_pipeline_feature_enabled": "true"}
}

```

After deploying my remote LLM model successfully ( I am using hugging face model inference endpoints). Which is working well with \_predict API and giving successful response

I am getting below error

```auto
{
    "error": {
        "root_cause": [
            {
                "type": "m_l_exception",
                "reason": "plugins.ml_commons.rag_pipeline_feature_enabled is not enabled."
            }
        ],
        "type": "m_l_exception",
        "reason": "plugins.ml_commons.rag_pipeline_feature_enabled is not enabled."
    },
    "status": 500
}

```

Below is my request

**PUT /\_search/pipeline/rag\_pipeline**

```auto
{
  "response_processors": [
    {
      "retrieval_augmented_generation": {
        "tag": "movie bot",
        "description": "Demo pipeline Using HF",
        "model_id": "Pbh0p4wB9_MXHuOCuY",
        "context_field_list": ["text"],
        "system_prompt": "You are a helpful assistant",
        "user_instructions": "Generate a concise and informative answer in less than 100 words for the given question"
      }
    }
  ]
}

```

Thanks

Ram Da

---

<div class="post-metadata">

**Author:** ![austinlee](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@austinlee](https://forum.opensearch.org/u/austinlee)\
**Post date:** [December 29, 2023, 8:38pm UTC](https://forum.opensearch.org/t/not-able-to-enable-the-feature-rag-pipeline-feature-enabled-in-ml-plugin/17277/2 "2023-12-29T20:38:30Z")

</div>

What version of OpenSearch are you using and how did you install it? E.g. Docker on your laptop?

When you ran the PUT command, did you get a response showing “acknowledged: true”? Can you run /\_cluster/settings to confirm the feature flag is in fact set to “true”?

You can also try setting it to “false” and then setting it back to “true”.

---

<div class="post-metadata">

**Author:** ![ramda](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@ramda](https://forum.opensearch.org/u/ramda)\
**Post date:** [December 30, 2023, 3:19am UTC](https://forum.opensearch.org/t/not-able-to-enable-the-feature-rag-pipeline-feature-enabled-in-ml-plugin/17277/3 "2023-12-30T03:19:54Z")

</div>

> [@austinlee](#):
>
> You can also try setting it to “false” and then setting it back to “true”.

This worked for me , by setting it to “false” and back to “true”

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [February 28, 2024, 3:20am UTC](https://forum.opensearch.org/t/not-able-to-enable-the-feature-rag-pipeline-feature-enabled-in-ml-plugin/17277/4 "2024-02-28T03:20:29Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
