Looking for some help using Pinecone and langchain

I want to add vectors to an existing name space. I am using langhcain to help. I was wondering how to change these two lines of code, so that they upload to a namespace called “accessibility-docs”

docsearch = Pinecone.from_texts([t.page_content for t in texts], embeddings, index_name=“access-vec”)

docs = docsearch.similarity_search(query, include_metadata=True, k=5)

Is the correct answer simply to do the below?

docsearch = Pinecone.from_texts([t.page_content for t in texts], embeddings, index_name=“access-vec”, namespace=“acessibility-docs”)

docs = docsearch.similarity_search(query, include_metadata=True, k=5, namespace=“acessibility-docs”)

Sorry, I’ve been looking through the langhcain documentation and it isnt great sometimes.

Sorry one more addition, where would I add the metadata in these lines of code. Sorry, I am complete noob here.