def _format_output(query_response: QueryResponse) -> str:
            """Only return the document since they are likely to be passed to prompt"""
            documents = query_response.get("matches", [])
            if len(documents) == 0:
                return ""

            return "\n".join(
                [
                    f"Doc {i}: {self.id2doc[doc['id']]}"
                    for i, doc in enumerate(documents)
                ]
            )
Only return the document since they are likely to be passed to prompt
autochain/tools/internal_search/pinecone_tool.py