Antoine Chaffin commited on
Commit
d3e89bb
·
1 Parent(s): 24d7b78

Enhance readme

Browse files
Files changed (1) hide show
  1. app.py +5 -8
app.py CHANGED
@@ -39,17 +39,12 @@ readme_md = """
39
  Multi-vector search has shown very strong performance compared to single dense vector search in numerous domain, including out-of-domain, [long-context](https://x.com/antoine_chaffin/status/1919396926736257521) and [reasoning-intensive](https://x.com/antoine_chaffin/status/1925555110521798925) retrieval.
40
 
41
  They are thus particularly well suited for modern retrieval use cases, including agentic workflows.
42
-
43
  [PyLate](https://lightonai.github.io/pylate/) is library built on top of sentence-transformers that allows to easily train and use multi-vector models.
44
 
45
  This MCP server is a demonstration of the use of PyLate models alongside its index optimized for multi-vector search, PLAID.
46
 
47
- This repository propose to search among the [leetcode split of the BRIGHT dataset](https://huggingface.co/datasets/xlangai/BRIGHT/viewer/documents/leetcode) using [Reason-ModernColBERT](https://huggingface.co/lightonai/Reason-ModernColBERT).
48
-
49
- This 150M parameters model outperforms 7B models on this reasoning-intensive retrieval benchmark, which requires reasoning to find relevant documents.
50
-
51
  Although it can perform reasoning on its own, [it benefits from LLM reformulation](https://x.com/antoine_chaffin/status/1930625989643587598) and is thus particularly suited as a MCP to collaborate with an LLM.
52
-
53
  Effectively, this demo allows to build a tool that can solve any leetcode problem by searching for problems that require similar algorithms and feed it to the LLM.
54
 
55
  You can see it working in this example, where the agent find relevant leetcode solution, propose solutions with different complexity level as well as associated tests to validate them and even vizualisation tool.
@@ -72,12 +67,14 @@ iframe2 = """
72
  """
73
 
74
  with gr.Blocks() as demo:
75
- gr.Markdown("# LeetCode Search")
76
- gr.Markdown("Search in leetcode database index using PyLate")
77
  gr.Markdown(readme_md)
78
  gr.HTML(iframe1)
79
  gr.Markdown(readme_md2)
80
  gr.HTML(iframe2)
 
 
 
 
81
  gr.Interface(
82
  fn=pylate_search_leetcode,
83
  inputs=["text"],
 
39
  Multi-vector search has shown very strong performance compared to single dense vector search in numerous domain, including out-of-domain, [long-context](https://x.com/antoine_chaffin/status/1919396926736257521) and [reasoning-intensive](https://x.com/antoine_chaffin/status/1925555110521798925) retrieval.
40
 
41
  They are thus particularly well suited for modern retrieval use cases, including agentic workflows.
 
42
  [PyLate](https://lightonai.github.io/pylate/) is library built on top of sentence-transformers that allows to easily train and use multi-vector models.
43
 
44
  This MCP server is a demonstration of the use of PyLate models alongside its index optimized for multi-vector search, PLAID.
45
 
46
+ This repository propose to search among the [leetcode split of the BRIGHT dataset](https://huggingface.co/datasets/xlangai/BRIGHT/viewer/documents/leetcode) using [Reason-ModernColBERT](https://huggingface.co/lightonai/Reason-ModernColBERT). This 150M parameters model outperforms 7B models on this reasoning-intensive retrieval benchmark, which requires reasoning to find relevant documents.
 
 
 
47
  Although it can perform reasoning on its own, [it benefits from LLM reformulation](https://x.com/antoine_chaffin/status/1930625989643587598) and is thus particularly suited as a MCP to collaborate with an LLM.
 
48
  Effectively, this demo allows to build a tool that can solve any leetcode problem by searching for problems that require similar algorithms and feed it to the LLM.
49
 
50
  You can see it working in this example, where the agent find relevant leetcode solution, propose solutions with different complexity level as well as associated tests to validate them and even vizualisation tool.
 
67
  """
68
 
69
  with gr.Blocks() as demo:
 
 
70
  gr.Markdown(readme_md)
71
  gr.HTML(iframe1)
72
  gr.Markdown(readme_md2)
73
  gr.HTML(iframe2)
74
+ gr.Markdown("# LeetCode Search")
75
+ gr.Markdown(
76
+ "Search in leetcode database index using PyLate and Reason-ModernColBERT"
77
+ )
78
  gr.Interface(
79
  fn=pylate_search_leetcode,
80
  inputs=["text"],