# Pinecone vectorization after splitting text chunks not working

**URL:** <https://community.pinecone.io/t/pinecone-vectorization-after-splitting-text-chunks-not-working/4402>\
**Category:** Support\
**Tags:** vector-database, embeddings\
**Created:** [February 3, 2024, 12:14pm UTC](https://community.pinecone.io/t/pinecone-vectorization-after-splitting-text-chunks-not-working/4402 "2024-02-03T12:14:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rawatnarendra009](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@rawatnarendra009](https://community.pinecone.io/u/rawatnarendra009)\
**Post date:** [February 3, 2024, 12:14pm UTC](https://community.pinecone.io/t/pinecone-vectorization-after-splitting-text-chunks-not-working/4402/1 "2024-02-03T12:14:04Z")

</div>

# Create an empty vector store or index using the appropriate method

index\_name = “medical-chatbot”

# # # Create embeddings for each text chunk

# embeddings = HuggingFaceEmbeddings(model\_name=“sentence-transformers/all-MiniLM-L6-v2”)

chunk\_vectors =   
for chunk in text\_chunks:  
chunk\_embedding = embeddings.embed\_documents(chunk.page\_content)  
chunk\_vectors.append(chunk\_embedding)

# Upsert individual vectors with unique IDs

for i, chunk\_vector in enumerate(chunk\_vectors):  
vector\_id = f"chunk-{i}"  
index.upsert(index\_name, vector\_id, chunk\_vector,batch\_size=100)

Requirement: PDF is loaded,extracted, spliited into text\_chunks and hugging face embedding i have downloaded. Now I want to move the embeddings to be applied on the input chunks and store vectors in the data base but not able to do so.

Problem :My code is running but I cannot see Vectors being created in the Pinecone Database Index. What could be the reason?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/pinecone/original/1X/d16664eba369eeee623700cf12feab5562b37eaf.jpeg) [@system](https://community.pinecone.io/u/system)\
**Post date:** [February 17, 2024, 12:14pm UTC](https://community.pinecone.io/t/pinecone-vectorization-after-splitting-text-chunks-not-working/4402/2 "2024-02-17T12:14:44Z")

</div>

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