# Rasa Knowledge Base bot with spacy pipeline

**URL:** <https://forum.rasa.com/t/rasa-knowledge-base-bot-with-spacy-pipeline/25088>\
**Category:** Rasa Open Source\
**Created:** [February 20, 2020, 11:25pm UTC](https://forum.rasa.com/t/rasa-knowledge-base-bot-with-spacy-pipeline/25088 "2020-02-20T23:25:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sterpapi](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@sterpapi](https://forum.rasa.com/u/sterpapi)\
**Post date:** [February 20, 2020, 11:25pm UTC](https://forum.rasa.com/t/rasa-knowledge-base-bot-with-spacy-pipeline/25088/1 "2020-02-20T23:25:17Z")

</div>

Hello, I created a working knowledge base english bot based on the example on github and would like an assist how to configure my pipeline with spacy instead of supervised\_embeddings. I don’t know if is possible. Anyone can help me with this?

My current config is below:

language: en pipeline: supervised\_embeddings policies:

- name: MemoizationPolicy
- name: KerasPolicy
- name: MappingPolicy

I tried with pipeline: pretrained\_embeddings\_spacy but my bot seems to not understand the user. I also get this error: \lib\site-packages\rasa\nlu\extractors\crf\_entity\_extractor.py:590: UserWarning: Number of features (1) for attribute ‘text\_dense\_features’ does not match number of tokens (6). Set ‘return\_sequence’ to true in the corresponding featurizer in order to make use of the features in ‘CRFEntityExtractor’. f"Number of features ({len(features)}) for attribute "

---

<div class="post-metadata">

**Author:** ![sterpapi](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@sterpapi](https://forum.rasa.com/u/sterpapi)\
**Post date:** [February 22, 2020, 7:51pm UTC](https://forum.rasa.com/t/rasa-knowledge-base-bot-with-spacy-pipeline/25088/2 "2020-02-22T19:51:14Z")

</div>

any help with this?

---

<div class="post-metadata">

**Author:** ![AminaDerouiche](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@AminaDerouiche](https://forum.rasa.com/u/AminaDerouiche)\
**Post date:** [March 18, 2021, 10:44am UTC](https://forum.rasa.com/t/rasa-knowledge-base-bot-with-spacy-pipeline/25088/3 "2021-03-18T10:44:28Z")

</div>

@sterpapi did you create a custom policy? because in rasa docs there is 3 policies based on ML (TEDPolicy, Memoization Policy, Augmented Memoization Policy) and one rule based policy. so what is KerasPolicy and MappingPolicy?
