# Legal semantic search application

**URL:** https://community.pinecone.io/t/legal-semantic-search-application/5957
**Category:** Support
**Tags:** semantic-search
**Created:** [June 22, 2024, 6:47am UTC](https://community.pinecone.io/t/legal-semantic-search-application/5957 "2024-06-22T06:47:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![martybhoy2009](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/martybhoy2009/32/1204_2.png) [@martybhoy2009](https://community.pinecone.io/u/martybhoy2009)
#### Post date: [June 22, 2024, 6:47am UTC](https://community.pinecone.io/t/legal-semantic-search-application/5957/1 "2024-06-22T06:47:43Z")

</div>

I am trying to replace the sample documents with my own documents in the legal-semantic-search application ([sample-apps/legal-semantic-search/docs at main · pinecone-io/sample-apps · GitHub](https://github.com/pinecone-io/sample-apps/tree/main/legal-semantic-search/docs)), however it is not clear if the db.json in the docs file will be automatically generated or if this is something that needs to be manually created? Please can you explain this part further?

Thank you

---

<div class="post-metadata">

### Author: ![ZacharyProser](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/zacharyproser/32/1146_2.png) [@ZacharyProser](https://community.pinecone.io/u/ZacharyProser)
#### Post date: [June 24, 2024, 2:50pm UTC](https://community.pinecone.io/t/legal-semantic-search-application/5957/2 "2024-06-24T14:50:30Z")

</div>

Hi @martybhoy2009, and welcome to the Pinecone forums!

Thank you for your question.

The `db.json` file is a sample file that simulates a means of providing additional metadata about your documents - since there’s a number of ways you could opt to do so in your production app:

- A Flatfile, like db.json
- A traditional RDMS like MySQL or PostgreSQL
- Document-level metadata like Frontmatter which would require additional parsing

For the purposes of the sample app, the `db.json` file is static and manually created.

Therefore, if you’re trying to swap in your own PDF files, edit the entries in `db.json` so they match your files.

Hope that helps!

Best,  
Zack
