Skip to content

added comments, added ui improvements and requirement of txt#10

Merged
lucifer-ux merged 4 commits into
mainfrom
added-ui-improvement-and-textual-dependency
Apr 12, 2026
Merged

added comments, added ui improvements and requirement of txt#10
lucifer-ux merged 4 commits into
mainfrom
added-ui-improvement-and-textual-dependency

Conversation

@lucifer-ux
Copy link
Copy Markdown
Owner

No description provided.

Comment thread cli/commands/search.py Outdated
super().__init__()
self._search_fn = search_fn
self._open_fn = open_fn
self.DEBUG = True
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why debug mode is true here

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i added it to debug textual to enable its logs have removed it can be enabled to debug

Comment thread test_video_indexing.py Outdated
from pathlib import Path

pipeline = IndexPipeline()
video_path = Path(r"C:\Users\USER\Documents\test\Screen Recording 2026-03-28 220347.mp4")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?? why hardcoding

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it test suite

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my bad added this for testing have removed

Comment thread cli/commands/search.py
# stores results by modality, and displays the current modality's results.
def _perform_search(self, query: str) -> None:
top_k_select = self.query_one("#top-k-select", Select)
top_k = top_k_select.value or 6
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why 6 here?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default value for the user to see for the first time, giving back 6 as the default top k select values

Comment thread cli/commands/search.py Outdated
self.current_results = results # Store for selection
if results:
self.log(f">>> Displaying {len(results)} {self.current_modality} results")
scores = [abs(float(r.get("score", 0.0))) for r in results]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we written in a better way, very less readability

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and what is r here

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didnt understand about readability? spacing or logic cleanup? sure will rename r

Copy link
Copy Markdown
Collaborator

@abhiedward001 abhiedward001 Apr 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean too much opt. in a single line . Its more wrt how you want to grow your codebase. For ex. same could have done like
scores = []
for r in results:
score = float(r.get("score", 0.0))
scores.append(abs(score))

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will add a linter but the logic is being in single line will remain the same still sooo its simplifying vs overcomplicating keeping the above version itself

Comment thread cli/commands/search.py Outdated
self.log(f">>> Displaying {len(results)} {self.current_modality} results")
scores = [abs(float(r.get("score", 0.0))) for r in results]
max_score = max(scores) if scores else 0.0
for i, r in enumerate(results):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again r, sometimes its a iterator , sometimes a value. Dont know what is r

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls use meaningful iterator names. i,r (doesn't make sense)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure will add

Copy link
Copy Markdown
Collaborator

@abhiedward001 abhiedward001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls create a linting rule for your codebase. Would be very helpful. Need linter, pre commit hooks to maintain code hygiene

@lucifer-ux lucifer-ux merged commit 1c81e73 into main Apr 12, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants