Skip to content

Commit

Permalink
cleaned code
Browse files Browse the repository at this point in the history
  • Loading branch information
assafelovic committed Oct 29, 2024
1 parent 248e364 commit 2ebbf4e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions gpt_researcher/skills/context_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ async def get_similar_content_by_query_with_vectorstore(self, query, filter):
vectorstore_compressor = VectorstoreCompressor(self.researcher.vector_store, filter)
return await vectorstore_compressor.async_get_context(query=query, max_results=8)


async def get_similar_written_contents_by_draft_section_titles(
self,
current_subtopic: str,
Expand Down Expand Up @@ -85,17 +84,3 @@ async def __get_similar_written_contents_by_query(self,
return await written_content_compressor.async_get_context(
query=query, max_results=max_results, cost_callback=self.researcher.add_costs
)

async def get_similar_content_by_query_with_vectorstore(self, query, filter):
if self.researcher.verbose:
await stream_output(
"logs",
"fetching_query_content",
f"📚 Getting relevant content based on query: {query}...",
self.researcher.websocket,
)
vectorstore_compressor = VectorstoreCompressor(
self.researcher.vector_store, filter)
return await vectorstore_compressor.async_get_context(
query=query, max_results=8
)

0 comments on commit 2ebbf4e

Please sign in to comment.