# The namespace does not add to my db

**URL:** <https://community.pinecone.io/t/the-namespace-does-not-add-to-my-db/5375>\
**Category:** Support\
**Tags:** namespace\
**Created:** [April 28, 2024, 4:15pm UTC](https://community.pinecone.io/t/the-namespace-does-not-add-to-my-db/5375 "2024-04-28T16:15:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ouchen606](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/ouchen606/32/2518_2.png) [@ouchen606](https://community.pinecone.io/u/ouchen606)\
**Post date:** [April 28, 2024, 4:15pm UTC](https://community.pinecone.io/t/the-namespace-does-not-add-to-my-db/5375/1 "2024-04-28T16:15:12Z")

</div>

"  
import { PineconeClient } from ‘@pinecone-database/pinecone’

export const getPineconeClient = async () =\> {  
const client = new PineconeClient()

await client.init({  
apiKey: process.env.PINECONE\_API\_KEY,  
environment: ‘us-east1-gcp’,  
})

return client  
}  
"

"export const processFile = async (data: Files): Promise =\> {  
try {  
const response = await fetch(data.url)

```
const blob = await response.blob()

const loader = new PDFLoader(blob)

const pageLevelDocs = await loader.load()

const pagesAmt = pageLevelDocs.length

const pinecone = await getPineconeClient()
const pineconeIndex = pinecone.Index('doctgify')

const embeddings = new OpenAIEmbeddings({
  openAIApiKey: process.env.OPENAI_API_KEY,
})

await PineconeStore.fromDocuments(
  pageLevelDocs,
  embeddings,
  {
    pineconeIndex,
    namespace: data.name,
  }
)

```

} catch (error) {  
throw error  
}  
return ‘success’;  
};  
"

the code above is showing no but also it’s not working ?

---

<div class="post-metadata">

**Author:** ![zeke](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/zeke/32/4257_2.png) [@zeke](https://community.pinecone.io/u/zeke)\
**Post date:** [May 1, 2024, 7:37pm UTC](https://community.pinecone.io/t/the-namespace-does-not-add-to-my-db/5375/2 "2024-05-01T19:37:33Z")

</div>

@ouchen606 What do you mean when you say the “code above is showing no”? Are you seeing vectors upserted into your index, but just not into the correct namespace? If so, what namespace are the vectors landing in?

Please note that the `fromDocuments` method is a LangChain operation.
