Ambrogio: Code improvements

Modified files:
- llm_apps_with_memory_tutorials/ai_arxiv_agent_memory/ai_arxiv_agent_memory.py
- advanced_tools_frameworks/cursor_ai_experiments/multi_agent_researcher.py
- advanced_tools_frameworks/local_llama3.1_tool_use/llama3_tool_use.py
- rag_tutorials/rag_chain/app.py
- rag_tutorials/hybrid_search_rag/main.py
This commit is contained in:
Raoul Scalise
2025-02-13 21:59:11 +01:00
parent 1a036b2813
commit 3a85fa8924
5 changed files with 124 additions and 0 deletions

View File

@@ -29,6 +29,17 @@ if all(api_keys.values()):
search_query = st.text_input("Research paper search query")
def process_with_gpt4(result):
"""Processes an arXiv search result to produce a structured markdown output.
This function takes a search result from arXiv and generates a markdown-formatted
table containing details about each paper. The table includes columns for the
paper's title, authors, a brief abstract, and a link to the paper on arXiv.
Args:
result (str): The raw search result from arXiv, typically in a text format.
Returns:
str: A markdown-formatted string containing a table with paper details."""
prompt = f"""
Based on the following arXiv search result, provide a proper structured output in markdown that is readable by the users.
Each paper should have a title, authors, abstract, and link.