Skip to content

[Question]: Usage of Graph Algorithms and Any Slowdowns? #8893

Closed

Description

@nv-rliu

Hi there,

I'm interested in understanding if haystack depends on any graph algorithms from its usage of NetworkX? If so,

  • What algorithms are used for what purpose?
  • What graph sizes are they being used with?
  • Have users experienced any slowdowns or issues with algorithms provided by NetworkX? (Speed, algorithm availability, etc)

Furthermore, would users be interested in accelerated nx algorithms via a GPU backend? This would involve zero code change.

Any insight into this topic would be greatly appreciated! Thank you.

Activity

  1. lbux commented on Feb 21, 2025

    @lbux
    Contributor

    From my understanding, I think a base.py in core/pipeline takes the inputs of a haystack Pipeline and makes it into a NetworkX MultiDiGraph. That graph is then passed into the .draw() method and converted to text to be used for the Mermaid.ink server that is used for visuals. I can't speak for whether or not this is efficient as the biggest pipeline's I've created were bottlenecked by a Mermaid server issue which is now resolved.

    I'm not sure if NetworkX is used elsewhere and for other purposes besides the draw() call.

  2. locked and limited conversation to collaborators on Feb 21, 2025
  3. converted this issue into a discussion #8895 on Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions