# How to get the Vector Store from Document Splitted and Embedding

**URL:** <https://forum.weaviate.io/t/how-to-get-the-vector-store-from-document-splitted-and-embedding/2536>\
**Category:** Support\
**Tags:** python\
**Created:** [May 29, 2024, 2:05pm UTC](https://forum.weaviate.io/t/how-to-get-the-vector-store-from-document-splitted-and-embedding/2536 "2024-05-29T14:05:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eduardobuzzi](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/eduardobuzzi/32/1691_2.png) [@eduardobuzzi](https://forum.weaviate.io/u/eduardobuzzi)\
**Post date:** [May 29, 2024, 2:05pm UTC](https://forum.weaviate.io/t/how-to-get-the-vector-store-from-document-splitted-and-embedding/2536/1 "2024-05-29T14:05:17Z")

</div>

### Description

I would like help to use Weaviate V4 for Python correctly to vectorise the split document and embedding.

Currently the only way I can receive the vector is to use “WeaviateVectorStore” from “from langchain\_weaviate”, but the problem is that it creates a collection in the Cluster every time the code is executed and the vector is returned to the “vectorstore” variable.

What I want is for it not to create a collection every time it vectorises, but just to return the vector. I’ve tried deleting the code in the dependency where it creates the collection automatically, but it still creates a collection.

### Server Setup Information

- Weaviate Server Version: 1.24.13
- Deployment Method: binary
- Multi Node? Number of Running Nodes: 1

### Any additional Information

Below is the code I’m using

vectorstore = WeaviateVectorStore.from\_documents(client=self.client, documents=self.documents\_split, embedding=self.embedding)

could anyone suggest an alternative way or even a solution?

---

<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:** [May 29, 2024, 6:20pm UTC](https://forum.weaviate.io/t/how-to-get-the-vector-store-from-document-splitted-and-embedding/2536/2 "2024-05-29T18:20:18Z")

</div>

Hi @eduardobuzzi !!

Welcome to our community 🤗

I believe I have just the recipe you are looking for.

This recipe will use the latest langchain integration with Weaviate to ingest 2 different PDF files, and allow you to use both langchain and directly to filter, generate, query, etc.

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

I believe you will need to specify the index\_name and initialize always with the same index\_name. Like in here:

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

```

Let me know if this helps 🙂

---

<div class="post-metadata">

**Author:** ![eduardobuzzi](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/eduardobuzzi/32/1691_2.png) [@eduardobuzzi](https://forum.weaviate.io/u/eduardobuzzi)\
**Post date:** [June 7, 2024, 12:01pm UTC](https://forum.weaviate.io/t/how-to-get-the-vector-store-from-document-splitted-and-embedding/2536/3 "2024-06-07T12:01:30Z")

</div>

Hello @DudaNogueira,

Unfortunately this Github link I think has been removed.

---

<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:** [June 10, 2024, 8:49pm UTC](https://forum.weaviate.io/t/how-to-get-the-vector-store-from-document-splitted-and-embedding/2536/4 "2024-06-10T20:49:18Z")

</div>

Hi!

Sorry for this.

Our team has moved some recipes around.

check here:

> **[GitHub - weaviate/recipes: This repository shares end-to-end notebooks on how...](https://github.com/weaviate/recipes)**
>
> This repository shares end-to-end notebooks on how to use various features and integrations with Weaviate at the core! - weaviate/recipes

then navigate to `integrations / llm-frameworks / langchain / loading-data /langchain-simple-pdf.ipynb`

Let me know if this helps.

Thanks!
