fynnfluegge / codeqai

Local first semantic code search and chat powered by vector embeddings and LLMs
Apache License 2.0
385 stars 46 forks source link

Wrong line numbers in Semantic search result #10

Closed fynnfluegge closed 8 months ago

fynnfluegge commented 11 months ago

The code snippets displayed as the result of the semantic search has wrong line numbers. The line numbers should be the same as in the relative file. Currently line numbers starts always at 1.

Screenshot 2023-10-08 at 10 12 48

This can be fixed by finding the occurrence of the code snippet in the file. The file name is present in the metadata of the vector search result.