# Querying the Exisitng Cluster in Weavaite

**URL:** <https://forum.weaviate.io/t/querying-the-exisitng-cluster-in-weavaite/3132>\
**Category:** Support\
**Tags:** python\
**Created:** [July 23, 2024, 2:10pm UTC](https://forum.weaviate.io/t/querying-the-exisitng-cluster-in-weavaite/3132 "2024-07-23T14:10:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksaimohan2k](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@ksaimohan2k](https://forum.weaviate.io/u/ksaimohan2k)\
**Post date:** [July 23, 2024, 2:10pm UTC](https://forum.weaviate.io/t/querying-the-exisitng-cluster-in-weavaite/3132/1 "2024-07-23T14:10:59Z")

</div>

We are working on creating a retriever to query data within the Weaviate cluster using the Langchain Framework.

Initially, we create embeddings for the documents and store them in Weaviate. However, processing them each time is time-consuming. It would be more efficient if we could create a retriever with the existing documents within the cluster.

Is there a way to achieve this?

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [July 23, 2024, 9:28pm UTC](https://forum.weaviate.io/t/querying-the-exisitng-cluster-in-weavaite/3132/2 "2024-07-23T21:28:59Z")

</div>

hi @ksaimohan2k !! Welcome to our community! 🤗

We have just the recipe for this:

> **[recipes/integrations/llm-frameworks/langchain/loading-data at main ·...](https://github.com/weaviate/recipes/tree/main/integrations/llm-frameworks/langchain/loading-data)**
>
> This repository shares end-to-end notebooks on how to use various Weaviate features and integrations! - weaviate/recipes

TLDR: You can instantiate your Weaviate VectorStore in langchain like so:

```auto
embeddings = OpenAIEmbeddings()
db = WeaviateVectorStore.from_documents([], embeddings, client=client, index_name="WikipediaLangChain")

```

Note that on this recipe, we create the collection outside Langchain and specify a vectorizer. Now you can query your collection using Langchain or even directly.

Let me know if this helps!

Thanks!

---

<div class="post-metadata">

**Author:** ![ksaimohan2k](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@ksaimohan2k](https://forum.weaviate.io/u/ksaimohan2k)\
**Post date:** [July 24, 2024, 7:22am UTC](https://forum.weaviate.io/t/querying-the-exisitng-cluster-in-weavaite/3132/3 "2024-07-24T07:22:21Z")

</div>

Thank You @DudaNogueira for your info, It worked.
